Skip to content

Understanding mesh_reorient() #252

Answered by BrunoLevy
tksuoran asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

This is because m.facets.connect() only connects facets along edges with opposite orientations, hence it does not see the connections between the well-oriented and the wrongly-oriented facets (it sees a "border" there that it cannot traverse).
To do what you wanted to do, you can use instead:

	GEO::mesh_repair(m, GEO::MESH_REPAIR_TOPOLOGY, 0.0);

It does in spirit the same thing as what you did, but calls repair_connect_facets() (private function in mesh_repair.cpp) that connects facets along matching edges regardless their orientation, then it calls mesh_reorient() that can do its job.

What are the arguments to mesh_repair() ?

  • The first one is a reference to the mesh to be repaired

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BrunoLevy
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