Skip to content

How to keep boundaries and features when using stl generalOffsetMesh to repair stl? #3026

Answered by WHUT666
WHUT666 asked this question in Q&A
Discussion options

You must be logged in to vote

Cool!This works well, except for some small geometric features.Can it be further repaired?

from meshlib import mrmeshpy as mm

# load mesh
mesh = mm.loadMesh(r"G:\case\stloffset\qlktgy4.stl")

# heal mesh (your mesh has self-intersectoins and not connected parts)
goParams = mm.GeneralOffsetParameters()
goParams.signDetectionMode = mm.SignDetectionMode.HoleWindingRule
goParams.mode=mm.GeneralOffsetParametersMode.Sharpening
mesh = mm.generalOffsetMesh(mesh,0,goParams)

mm.saveMesh(mesh, r"G:\case\stloffset\resMesh.stl")

Replies: 3 comments 6 replies

Comment options

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

@Grantim
Comment options

@WHUT666
Comment options

Comment options

You must be logged in to vote
1 reply
@WHUT666
Comment options

Answer selected by WHUT666
Comment options

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

@Grantim
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
3 participants