offset_polygon
- compas_cgal.straight_skeleton_2.offset_polygon(points, offset)
Compute the offset from a 2D polygon.
- Parameters:
- pointslist of point coordinates or
compas.geometry.Polygon
The points of the 2D polygon.
- offsetfloat
The offset distance. If negative, the offset is outside the polygon, otherwise inside.
- pointslist of point coordinates or
- Returns:
- list[
Polygon
] The offset polygon(s).
- list[
- Raises:
- ValueError
If the normal of the polygon is not directed vertically upwards like [0, 0, 1].