getContoursFromShapelyPolygon

pyslm.hatching.getContoursFromShapelyPolygon(poly, mergeRings=True)

Returns the contours from boundaries extracted from exterior and interior paths of shapely geometry.

Parameters:
  • poly (Polygon) – Shapely polygons

  • mergeRings (Optional[bool]) – If True combines the interior and exteriors within each path group

Return type:

Tuple[ndarray, ndarray]

Returns:

The paths extracted from the polygon paths