This fixes an issue when where earcut enters an infinite loop. The problem is that eliminateHole can remove the current node that is used in eliminateHoles.
In he test data the outer ring is completely degenerate, so a triangulation is not really possible.
This is related to #127 and #135 (submitted by colleagues of mine), but I could not reproduce the problems reported in those issues with the current version of earcut anymore.
This fixes an issue when where earcut enters an infinite loop. The problem is that
eliminateHole
can remove the current node that is used ineliminateHoles
.In he test data the outer ring is completely degenerate, so a triangulation is not really possible.
This is related to #127 and #135 (submitted by colleagues of mine), but I could not reproduce the problems reported in those issues with the current version of earcut anymore.