boolean_difference_mesh_mesh

compas.geometry.boolean_difference_mesh_mesh(A, B)[source]

Compute the boolean difference of two triangle meshes.

Parameters:
Atuple[sequence[point], sequence[[int, int, int]]]

The vertices and faces of mesh A.

Btuple[sequence[point], sequence[[int, int, int]]]

The vertices and faces of mesh B.

Returns:
tuple[list[point], list[[int, int, int]]]

The vertices and the faces of the boolean difference.

Notes

This function is a “pluggable”. This means that it doesn’t provide an implementation, but receives an implementation from a corresponding “plugin”. To use the plugin implementation, you have to install it in the same environment as COMPAS. One such plugin is available in compas_cgal.