mymesh.booleans.MeshBooleans#

mymesh.booleans.MeshBooleans(Surf1, Surf2, tol=1e-08)[source]#

Boolean (union, intersection, difference) for two surface meshes. https://dl.acm.org/doi/pdf/10.1145/15922.15904

Parameters:
  • Surf1 (mesh.mesh) – Mesh object containing a surface mesh

  • Surf2 (mesh.mesh) – Mesh object containing a surface mesh

  • tol (type, optional) – Tolerance value, by default 1e-8

Returns:

  • Union (mesh.mesh) – Mesh object containing the union of the two input surfaces

  • Intersection (mesh.mesh) – Mesh object containing the intersection of the two input surfaces

  • Difference (mesh.mesh) – Mesh object containing the difference of the two input surfaces