Skip to content
Discussion options

You must be logged in to vote

Hello!

The script should look somehow like this:
(you can tune the parameters to slightly change the result)

from meshlib import mrmeshpy as mm

mesh = mm.loadMesh(__file__+"/../clean_mesh.stl")

# fill hole
fhnSettings = mm.FillHoleNicelySettings()
fhnSettings.smoothCurvature = True
fhnSettings.triangulateOnly = False
fhnSettings.triangulateParams.metric = mm.getUniversalMetric(mesh)
fhnSettings.maxEdgeLen = mesh.averageEdgeLength()
fhnSettings.maxEdgeSplits = 1000000 # just large number not to stop too early
fhnSettings.naturalSmooth = False
newFaces = mm.fillHoleNicely(mesh,mesh.topology.findHoleRepresentiveEdges()[0],fhnSettings)

# decimate
dSettings = mm.DecimateSettings()
dSettings.m…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fedr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants