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

Feature request: expose preprocess remeshing #10

Open alecjacobson opened 6 years ago

alecjacobson commented 6 years ago

Would it be possible to expose the "preprocessing" stage that remeshes the input (collapsing small triangles etc.) to the command line user? This could be very useful in other contexts, too.

(in the meanwhile, which function does this in the code?)

Yixin-Hu commented 6 years ago

I don’t want to expose that, because that function simplifies input within envelop, which may introduce self-intersections. Note that it’s not a real mesh simplification, it’s just a preprocessing.

Yixin-Hu commented 6 years ago

It’s in class Preprocess.

alecjacobson commented 6 years ago

Could you point me to the function in the code so I could dig it out if I wanted? (race condition :- ) thanks.

Yixin-Hu commented 6 years ago

Line 293 & 330 in Preprocess.cpp are two functions for collapsing and swapping surface edges.