When I try to triangulate a particular set of data (not all data), I get the following error output:
.
.
.
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipEdgeEvent(DTSweep.java:847)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipScanEdgeEvent(DTSweep.java:991)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipEdgeEvent(DTSweep.java:847)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipScanEdgeEvent(DTSweep.java:991)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipEdgeEvent(DTSweep.java:847)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipScanEdgeEvent(DTSweep.java:991)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipEdgeEvent(DTSweep.java:847)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipScanEdgeEvent(DTSweep.java:991)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipEdgeEvent(DTSweep.java:847)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipScanEdgeEvent(DTSweep.java:991)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipEdgeEvent(DTSweep.java:847)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipScanEdgeEvent(DTSweep.java:991)
at org.poly2tri.triangulation.delaunay.sweep.DTSweep.flipEdgeEvent(DTSweep.java:847)
There is a lot more of this same stuff before, but I think you get the point. Obviously I am using the Java version.
It's not really an infinite loop, it's infinite recursion that runs out of resources.
When I log output, it is flipping the same two points back and forth, so first is ep->eq, then next is eq->ep, then ep->eq,. then eq->ep, etc.
Logging was added in DTSweep.flipScanEdgeEvent(). op equals ep for the call to flipEdgeEvent
Is that enough information to help you find the problem?
I thought not. I have attached at file DummyData.java. Change the package to match your setup and it will load the data that is causing my problem.
Any help at all would be welcome.
Thanks.
Keith