trimesh.boolean#

boolean.py#

Do boolean operations on meshes using either Blender or Manifold.

trimesh.boolean.boolean_manifold(meshes, operation, debug=False, **kwargs)#

Run an operation on a set of meshes using the Manifold engine.

trimesh.boolean.boolean_scad(*args, **kwargs)#
trimesh.boolean.difference(meshes, engine=None, **kwargs)#

Compute the boolean difference between a mesh an n other meshes.

Parameters:
  • meshes (list of trimesh.Trimesh) – Meshes to be processed

  • engine (str) – Which backend to use, i.e. ‘blender’ or ‘manifold’

Returns:

difference

Return type:

a - (other meshes), **kwargs for a Trimesh

trimesh.boolean.intersection(meshes, engine=None, **kwargs)#

Compute the boolean intersection between a mesh an n other meshes.

Parameters:
  • meshes (list of trimesh.Trimesh) – Meshes to be processed

  • engine (str) – Which backend to use, i.e. ‘blender’ or ‘manifold’

Returns:

intersection – volume that is contained by all meshes

Return type:

**kwargs for a Trimesh object of the

trimesh.boolean.union(meshes, engine=None, **kwargs)#

Compute the boolean union between a mesh an n other meshes.

Parameters:
  • meshes (list of trimesh.Trimesh) – Meshes to be processed

  • engine (str) – Which backend to use, i.e. ‘blender’ or ‘manifold’

Returns:

union

Return type:

a + (other meshes), **kwargs for a Trimesh