path2DToPathList¶
-
pyslm.support.
path2DToPathList
(shapes)¶ Returns the list of paths and coordinates from a cross-section (i.e.
Trimesh.path.Path2D
objects). This is required to be done for performing boolean operations and offsetting with the internal PyClipper package.- Parameters:
shapes (
List
[Polygon
]) – A list of Shapely Polygons representing a cross-section or container of closed polygons- Return type:
List
[ndarray
]- Returns:
A list of paths (Numpy Coordinate Arrays) describing fully closed and oriented paths.