Polygon.boolean_intersection

Polygon.boolean_intersection(other)[source]

Compute the boolean intersection of this polygon and another polygon.

For this operation, both polygons are assumed to lie in the XY plane. Therefore, the Z components of the points defining the polygons are simply ignored. If the polygons are not in the XY plane, it is the responibility of the user to transform them accordingly. Otherwise the results are meaningless.

Parameters:
othercompas.geometry.Polygon

The other polygon.

Returns:
compas.geometry.Polygon

The intersection polygon.