Replies: 1 comment
-
Hello! I think it should look somehow like this: from meshlib import mrmeshpy as mm
meshA = mm.loadMesh("path/to/meshA.stl")
meshB = mm.loadMesh("path/to/meshB.stl")
denseBox = mm.DenseBox(meshA)
cubeA = mm.makeCube(denseBox.box().size(),denseBox.box().min)
cubeA.transform(denseBox.basisXf())
difMesh = mm.boolean(cubeA,meshB,mm.BooleanOperation.DifferenceAB).mesh
mm.saveMesh(difMesh,"path/to/difMesh.stl") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have two meshes (A and B), and I would like to use the "Show Dense BBox" feature from Mesh Inspector to create a mesh of the bounding box for mesh A. After generating that bounding box mesh, I would like to perform a boolean operation between this bounding box mesh and mesh B.
Could you provide Python code that accomplishes this?
Beta Was this translation helpful? Give feedback.
All reactions