graphinglib.Polygon.create_union#

Polygon.create_union(other: Self, copy_style: bool = False) Self[source]#

Returns the union of the polygon with another polygon.

Parameters:
otherPolygon

The other polygon.

copy_stylebool, optional

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

Returns:
Polygon

The union of the two polygons.