graphinglib.Polygon.create_intersection#

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

Returns the intersection 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 intersection of the two polygons.