Polygon.boolean_difference

Polygon.boolean_difference(other)[source]

Compute the boolean difference 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 difference polygon.