Polygon.boolean_symmetric_difference

Polygon.boolean_symmetric_difference(other)[source]

Compute the boolean symmetric 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:
list[compas.geometry.Polygon]

The resulting polygons.