Hey, I have a problem with the ConstrainedDelaunayTriangulator on a specific Polygon. I was able to simplify the Polygon down to a minimal example that reproduces the issue.
A code example that reproduces the Problem looks like this.
It fails with an IllegalStateException "Unable to find a convex corner"
java.lang.IllegalStateException: Unable to find a convex corner
at org.locationtech.jts.triangulate.polygon.PolygonEarClipper.compute(PolygonEarClipper.java:169)
at org.locationtech.jts.triangulate.polygon.PolygonEarClipper.triangulate(PolygonEarClipper.java:61)
at org.locationtech.jts.triangulate.polygon.ConstrainedDelaunayTriangulator.triangulatePolygon(ConstrainedDelaunayTriangulator.java:107)
at org.locationtech.jts.triangulate.polygon.ConstrainedDelaunayTriangulator.compute(ConstrainedDelaunayTriangulator.java:87)
at org.locationtech.jts.triangulate.polygon.ConstrainedDelaunayTriangulator.getResult(ConstrainedDelaunayTriangulator.java:67)
at org.locationtech.jts.triangulate.polygon.ConstrainedDelaunayTriangulator.triangulate(ConstrainedDelaunayTriangulator.java:44)
at de.example.Main.main(Main.java:22)
The Polygon does not look particularly complex to me, that could explain the issue. So I think it might be a bug in the library. I am using Version 1.19.0
Hey, I have a problem with the ConstrainedDelaunayTriangulator on a specific Polygon. I was able to simplify the Polygon down to a minimal example that reproduces the issue.
A code example that reproduces the Problem looks like this.
Demo Project: https://github.com/TreufussMK/TriangulationFail
It fails with an IllegalStateException "Unable to find a convex corner"
The Polygon does not look particularly complex to me, that could explain the issue. So I think it might be a bug in the library. I am using Version 1.19.0