interior_straight_skeleton
- compas_cgal.straight_skeleton_2.interior_straight_skeleton(points, as_graph=True)
Compute the skeleton of a 2D polygon.
- Parameters:
- pointslist of point coordinates or
compas.geometry.Polygon
The points 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].