zishun / geodesic_matlab

Exact geodesic for triangular meshes implemented by Danil Kirsanov
https://mathworks.com/matlabcentral/fileexchange/18168-exact-geodesic-for-triangular-meshes
BSD 2-Clause "Simplified" License
22 stars 8 forks source link

Matlab example2 assertion failed! #1

Open zishun opened 5 years ago

zishun commented 5 years ago

When the dll built with debug configuration is used, Matlab example2 pops up a window saying that

“Assertion failed! geodesic_algorithm_exact.h Line:1166 
Expression:p->start() < p->stop()” 

Reasonable results can still be obtained if you click the button Ignore. If the dll built with release is used, Matlab will crash.

Is it necessary to have geodesic_algorithm_exact.h Line:1166?

assert(p->start() < p->stop());

Of course it is a straightforward workaround to comment out that line, which has been tested.