generateHeightMap

pyslm.support.generateHeightMap(mesh, upVec=[0, 0, 1.0], resolution=0.5, offsetPoly=None)

Generates the height map of the upper and lower depths. This is done by projecting rays at a resolution (attr:~BlockSupportGenerator.rayProjectionResolution) across the entire polygon region (offsetPoly) in both vertical directions (+z, -z) and are intersected with the upper and lower support surface. A sequence of height maps are generated from these ray intersections.

Parameters:
  • mesh (Trimesh) – The upper surface (typically overhang surface region)

  • upVec – The projection vector (default is pointing vertically in the +Z direction)

  • resolution (Optional[float]) – The resolution of the height map to generate

  • offsetPoly (Optional[Path2D]) – The polygon region defining the support region

Return type:

Tuple[ndarray]

Returns:

A tuple containing various height maps