boolean_difference_mesh_mesh
- compas_cgal.booleans.boolean_difference_mesh_mesh(A, B)
Boolean difference of two meshes.
- Parameters:
- A
compas_cgal.types.VerticesFaces
Mesh A.
- B
compas_cgal.types.VerticesFaces
Mesh B.
- A
- Returns:
Examples
>>> from compas.geometry import Box, Sphere, Polyhedron >>> from compas_cgal.booleans import boolean_difference_mesh_mesh
>>> box = Box(1) >>> sphere = Sphere(0.5, point=[1, 1, 1])
>>> A = box.to_vertices_and_faces(triangulated=True) >>> B = sphere.to_vertices_and_faces(u=32, v=32, triangulated=True)
>>> C = boolean_difference_mesh_mesh(A, B) >>> shape = Polyhedron(*C)