Skip to content
Discussion options

You must be logged in to vote

Thanks, the is happening because we only relax inner vertices for open meshes in UI, so script like this should work the same as UI:

from meshlib import mrmeshpy as mm

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

innerVerts = mm.getInnerVerts(mesh.topology,mesh.topology.getValidFaces())

rParams = mm.MeshRelaxParams()
rParams.force = 0.5
rParams.hardSmoothTetrahedrons = False
rParams.iterations = 100
rParams.limitNearInitial = False
rParams.region = innerVerts
mm.relax(mesh,rParams)

mm.saveMesh(mesh,__file__+"/../thicken_mesh_src.stl")

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@leye123
Comment options

@Grantim
Comment options

Answer selected by leye123
@leye123
Comment options

Comment options

You must be logged in to vote
2 replies
@Grantim
Comment options

@leye123
Comment options

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