SCIInstitute / Cleaver

A MultiMaterial Tetrahedral Meshing Library and Application
https://cleaver.readthedocs.io
Other
40 stars 18 forks source link

Problem in using fix_tet_windup #99

Open A-ep93 opened 3 years ago

A-ep93 commented 3 years ago

Hello all, I want to use the "fix_tet_windup" option for avoiding inside-out tetrahedra in the output mesh. However, I get the following error when I activate this option: "option '--fix_tet_windup' cannot be specified more than once" Can you please help me to find the problem? Thanks

A-ep93 commented 3 years ago

From the error I mentioned above, it seems that the fix_tet_windup option is enabled by default. But the result is not what I want. You can see that in the attached figure, some sections of the green part are drawn upward and some sections are purple part are drawn down in the outward of the real sphere. How can I fix this? image

jessdtate commented 3 years ago

The tet-windup refers to the order of the vertices in each tet of the mesh, and the fix_tet_windup will change the order, but not change the positions of values of any of the vertices. This is help when some software follows a different convention of tet ordering than others.

What I understand is that you are concerned with mislabeling of elements. This could be a problem with the mesh cleaving the wrong place or the incorrect mapping of the label. I think starting with a higher resolution image would fix both, but you could also try increasing the sampling_rate option a little.