Basic fill hole functionality in python from Meshinspector #3874
dhanraj-khatal
started this conversation in
General
Replies: 1 comment
-
Hello! Have you tried our example from documentation? "Basic" preset in MeshInspector UI have only one difference - it subdivides new faces after filling, and uses min area metric: import meshlib.mrmeshpy as mrmeshpy
# Load mesh
mesh = mrmeshpy.loadMesh("mesh.stl")
# Find single edge for each hole in mesh
hole_edges = mesh.topology.findHoleRepresentiveEdges()
for e in hole_edges:
# Setup filling parameters
params = mrmeshpy.FillHoleNicelySettings()
params.triangulateParams.metric = mrmeshpy.getMinAreaMetric(mesh)
params.smoothCurvature = False
# Fill hole represented by `e`
mrmeshpy.fillHoleNicely(mesh, e, params)
# Save result
mrmeshpy.saveMesh(mesh, "filledMesh.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.
-
How to implement the basic fill hole functionality from mesh inspector into python and from which mrmeshlib version it is supported
Beta Was this translation helpful? Give feedback.
All reactions