boolUnion

pyslm.support.boolUnion(meshA, meshB)

Performs a Boolean CSG union operation using the pycork library between two meshes.

Note

The meshes provided should ideally be watertight (manifold) and have no-self intersecting faces to ensure that the underlying Cork Library can correctly perform the operation. The resultant mesh is processed natively using Trimesh to merge coincident vertices and remove degenerate faces.

Parameters:
  • meshA (Trimesh) – Mesh A

  • meshB (Trimesh) – Mesh B

Return type:

Trimesh

Returns:

The Boolean union between Mesh A and Mesh B.