Polyhedron.boolean_difference
- Polyhedron.boolean_difference(other)[source]
Compute the boolean difference of this polyhedron and another.
- Parameters:
- other
compas.geometry.Polyhedron
The polyhedron to subtract.
- other
- Returns:
compas.geometry.Polyhedron
The resulting polyhedron.
Examples
>>> from compas.geometry import Box, Sphere >>> A = Box(2).to_polyhedron(triangulated=True) >>> B = Sphere(point=[1, 1, 1], radius=1.0).to_polyhedron(triangulated=True) >>> C = A.boolean_difference(B)