interior_straight_skeleton_with_holes
- compas_cgal.straight_skeleton_2.interior_straight_skeleton_with_holes(points, holes, as_graph=True)
Compute the skeleton of a 2D polygon with holes.
- Parameters:
- pointslist of point coordinates or
compas.geometry.Polygon
The points of the 2D polygon.
- holeslist of list of point coordinates or list of
compas.geometry.Polygon
The holes of the polygon.
- as_graphbool, optional
Whether the skeleton should be returned as a graph, defaults to True.
- pointslist of point coordinates or
- Returns:
compas.datastructures.Graph
or tuple of (vertices, indices, edges, edge_types)The skeleton of the polygon.
- Raises:
- ValueError
If the normal of the polygon is not directed vertically upwards like [0, 0, 1]. If the normal of a hole is not directed vertically downwards like [0, 0, -1].