Yixin-Hu / TetWild

Robust Tetrahedral Meshing in the Wild.
https://yixin-hu.github.io/tetwild.pdf
GNU General Public License v3.0
620 stars 98 forks source link

Input surface identification from output mesh #60

Closed Rgtemze closed 4 years ago

Rgtemze commented 4 years ago

Hi, Before all, thanks for developing this tetrahedralization tool.

Our issue is the following, since after tetrahedralization (without filtering) input stays inside the bounding box, we need to know which faces in the output mesh belong to surface. We used is_on_surface variable of TetVertex class for that purpose but it occurred to us that some of the surface faces were not covered. Yet, the figure from your paper suggests that you could identify faces corresponding to the surface.

image

Sincerely

Yixin-Hu commented 4 years ago

Hi,

The correct way to extract the embedded surface is to output final tetmeshes with and without winding number. The surface of the tetmesh with winding number is the embedded surface of the other one.

You can output the meshes before and after this line which is for applying winding number (in/out filtering): https://github.com/Yixin-Hu/TetWild/blob/master/src/tetwild/InoutFiltering.cpp#L80 (According to your message, I assume that you kind of know my code.)

Hope this helps