pathsToClosedPolygons

pyslm.hatching.pathsToClosedPolygons(paths)

Converts closed paths to Shapely polygons with both exterior and interior boundaries. This method leverages the same functionality in Trimesh but in a more convenient form.

Parameters:

paths – A list of closed paths consisting of (n x 2) coordinates

Return type:

List[Polygon]

Returns:

List of non-overlapping Shapely Polygons