Extrude Base function in Python #3421
Unanswered
jeahyuklee
asked this question in
Q&A
Replies: 1 comment
-
Hello! Please try from meshlib import mrmeshpy as mm
mesh = mm.loadMesh("path_to_mesh.stl")
direction = mm.Vector3f(0,0,-1)
voxelSize = mm.suggestVoxelSize( mesh, 5e6 )
extrusion = voxelSize * 10
mm.fixUndercuts( mesh, -direction, voxelSize, extrusion )
# if you want to extrude only some faces use `faces_to_extrude`
# mm.fixUndercuts( mesh, faces_to_extrude, -direction, voxelSize, extrusion )
mm.saveMesh( mesh, "path_to_result_mesh.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
-
Hello!
I would like to use the extrude base feature from MeshInspector in Python. On the website, this functionality automatically makes the mesh watertight after the extrusion. However, when I reviewed the documentation and available code, I could only find implementations using makeDegenerateBandAroundRegion to identify the boundary and verts_for_move to move vertices, which doesn't automatically handle making the mesh watertight.
How can I implement this feature in Python, achieving the same automated watertight results as MeshInspector does?
Beta Was this translation helpful? Give feedback.
All reactions