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) – The Part to analyse

  • overhangAngle (float) – The desired overhang angle in degrees

  • includeTriangleVertices (Optional[bool]) – Optional parameter projects also from the triangular vertices

Return type:

Tuple[ndarray]

Returns:

A tuple with the support map