Skip to content

example of Mesh Healer "Auto Rebuild Model" button #3563

Answered by Grantim
yueyueyueniaofei asked this question in Q&A
Discussion options

You must be logged in to vote

You are almost right, "Auto Rebuild Model" uses generalOffsetMesh but then if any issue remained it proceed with "Repair Selected" (at most two iterations). So what you might need to do is remove small components and enable decimation.

largestCompBitSet = mm.getLargestComponent( resMesh )
resMesh.deleteFaces( resMesh.topology.getValidFaces() - largestCompBitSet )
resMesh.pack() # optional, if you call decimation - consider enabling .packMesh in settings instead of this line

Actual "Repair Selected" is set of much more complex algorithms that are called in specific order, translate it to python might be big effort, usually it is recommended to have specific fixes for each type of cases ins…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@yueyueyueniaofei
Comment options

@Grantim
Comment options

Answer selected by yueyueyueniaofei
@yueyueyueniaofei
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
2 participants