approximateSupportMapByCentroid¶
-
pyslm.support.
approximateSupportMapByCentroid
(part, overhangAngle, includeTriangleVertices=False)¶ This method to approximate the surface area, projects a single ray \((0,0,-1)\), form each triangle in the overhang mesh -originating from the centroid or optionally each triangle vertex by setting the
includeTriangleVertices
parameter. A self-intersection test with the mesh is performed and this is used to calculate the distance from the hit location or if no intersection is made the base-plate (\(z=0.0\)), which may be used later to generate a support heightmap.- Parameters:
part (
Part
) – ThePart
to analyseoverhangAngle (
float
) – The desired overhang angle in degreesincludeTriangleVertices (
Optional
[bool
]) – Optional parameter projects also from the triangular vertices
- Return type:
Tuple
[ndarray
]- Returns:
A tuple with the support map