poly_offset

opstool.pre.section.poly_offset(points, d)[source]

Offsets closed polygons, same as opstool.pre.section.offset()

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]]