BlockSupportBase¶
-
class
pyslm.support.
BlockSupportBase
(supportObject=None, supportVolume=None, supportSurface=None, intersectsPart=False)¶ Bases:
pyslm.support.support.SupportStructure
The BlockSupportBase is a base class representing a single support volume region constructed by an extruded overhang region, that may intersect with the build platform (\(z=0\)) or self-intersect with
Part
. These are generated externally in theBlockSupportGenerator
and other derived generator classes that build upon this. Objects represent the data structure for the support strucutre rather than the methods for generating themselves.The support volume (
supportVolume
is a generic 3D volume body or mesh that enables differentiation of support structures to be generated by creating a derived class that re-defines the abstract method meth:~SupportStructure.geometry.Attributes Summary
The boundary or vertical walls constructed from the extruded support volume.
The support volume stores the 3D mesh geometry representing an extruded geometry projected onto either the part surface or build-plate (\(z=0\)).
The calculated volume of the support volume region
Methods Summary
geometry
()Returns the geometry representing the support structure.
triangulateSections
(sections)A static method to take a collection of section slice or cross-section and triangulate them into a combined mesh.
Attributes Documentation
-
supportBoundary
¶ The boundary or vertical walls constructed from the extruded support volume. These are identified by taking using
utils.getFaceZProjectionWeight()
and then using a default threshold value in the private static attributeBlockSupportBase._supportSkinSideTolerance
Note
Any self-intersections with the object geometry that are steep (~90 degrees) may potentially be included.
- Return type:
Trimesh
-
supportVolume
¶ The support volume stores the 3D mesh geometry representing an extruded geometry projected onto either the part surface or build-plate (\(z=0\)). This is generated externally in
BlockSupportGenerator
and the resultant block 3D geometry is stored in this property.- Return type:
Trimesh
-
volume
¶ The calculated volume of the support volume region
- Return type:
float
Methods Documentation
-
geometry
()¶ Returns the geometry representing the support structure.
- Return type:
Trimesh
-
static
triangulateSections
(sections)¶ A static method to take a collection of section slice or cross-section and triangulate them into a combined mesh. The triangulated meshed are then transformed based on the original transformation generated internally when using
trimesh.Trimesh.section()
.- Parameters:
sections – The sections to triangulate into a mesh
- Return type:
Trimesh
- Returns:
A mesh containing the concatenated triangulated polygon sections
-