poly2Paths

pyslm.hatching.poly2Paths(polygons)

Converts a shapely.geometry.Polygon or shapely.geometry.MultiPolygon to a list of paths

Parameters:

polygons (Union[Polygon, MultiPolygon]) – A polygon to convert to individual paths

Return type:

List[ndarray]

Returns:

A list of paths (interior and exterior) for each polygon