graphinglib.Rectangle.split#

Rectangle.split(curve: Curve, copy_style: bool = False) list[Self]#

Splits the polygon by a curve.

Parameters:
curveCurve

The curve to split the polygon by.

copy_stylebool, optional

If True, the current polygon’s parameters are copied to the new polygons. If False, the new polygons will have default parameters. Default is False.

Returns:
list[Polygon]

The list of polygons resulting from the split.