expand#

PolygonData.expand(offset, round_corner, max_corner_ext, tol=1e-09)#

Expand the polygon by an offset.

Parameters:
offsetfloat

Expansion offset. Specify a negative value to shrink the polygon.

round_cornerbool

Whether the corners are rounded corners. If False, the corners are straight edges.

max_corner_extfloat

Maximum corner extension to clip the corner at.

tolfloat, default: 1e-9

Tolerance.

Returns:
list[PolygonData]