Closed yutanoma closed 11 months ago
Would need your inputs to confirm. Are you compiling in release with NDEBUG defined?
No, I compiled with CMAKE_BUILD_TYPE=Debug
.
I now also tried CMAKE_BUILD_TYPE=Release
. For the same V
matrix with 1683 rows, when using igl::copyleft::tetgen::tetrahedralize
it took 40ms, whereas when calling directly it took 5ms. The input of the V matrix is here: v_matrix.txt
and when built under CMAKE_BUILD_TYPE=Release
I measured the time to process each steps in igl::copyleft::tetgen::tetrahedralize
.
I found out that it was boundary_facets(TT, TF)
that makes the slight difference between the two implementations above.
matrix_to_list: 0ms
matrix_to_list: 0ms
mesh_to_tetgenio: 0ms
tetrahedralize: 6ms
tetgenio_to_tetmesh: 0ms
boundary_facets: 8ms
I think this is not a bug after all, thank you.
Hi! I came across with a bug (?) that it becomes extremely slow when you call the
igl::copyleft::tetgen::tetrahedralize
function:whereas it is extremely faster when you directly call tetgen: