Geometric Offset#
- opstool.preprocessing.offset(points, d)[source]#
Offsets closed polygons
Parameters#
- pointslist[list[float, float]]
A list containing the coordinate points, [(x1, y1),(x2, y2),…,(xn.yn)].
- dfloat
Offsets closed polygons, positive values offset inwards, negative values outwards.
Returns#
coords: list[[float, float]]