Skip to main content

Module polygon_offset

Module polygon_offset 

Source
Expand description

2D polygon offset via parallel edge translation and miter joins.

Given a closed polygon in 2D, offsets each edge by a signed distance (positive = outward, negative = inward) and computes new vertex positions at the intersection of adjacent offset lines.

Functionsยง

offset_polygon_2d
Offset a closed 2D polygon by a signed distance.