You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Triangles outside a simple polygon with two holes, mirror case of #219 #221
The polygon below is simple, and the holes don't touch each other or the outer ring. earcut 3.0.2 returns 11 triangles. Since 3.1.0, and still on main after 77019d3, it returns 7, and 3 of them lie outside the polygon.
The first hole is bridged to (2, 7). The bridge continues the edge from (0, 9) in a straight line, so the second filterPoints in eliminateHole removes bridge itself. Its copy bridge2 then lies on the healed edge, and the second hole bridges into it from outside its angle. It's the same problem as #219 with the other copy of the vertex.
Activity
fix another hole bridging edge case, close mapbox#221