BrunoLevy / geogram

a programming library with geometric algorithms
Other
1.8k stars 122 forks source link

Inconsistent triangle vertex ordering #104

Closed manas-avi closed 11 months ago

manas-avi commented 11 months ago

Hi Bruno,

In the connect_triangles function here at https://github.com/BrunoLevy/geogram/blob/main/src/lib/geogram/voronoi/convex_cell.cpp#L1348

The index ordering used in the two for loops: [1378:1380] and [1389:1391] seems to be inconsistent leading to unexpected assert failures.

Best, Manas

BrunoLevy commented 11 months ago

Hi Manas, They are not inconsistent:

I've just added some comments in convex_cell.cpp() to explain that here and here

Hope this helps, Best, --Bruno