Skip to content

ConformingDelaunayTriangulationBuilder poor triangulation for single-triangle input, possibly for any already-Delaunay set of constraints. #1190

Description

@palisades-lakes

Starting from a single triangle, passing the 3 vertices as sites with empty constraints reproduces the same triangle.

No constraint result, same as original triangle:
Image

Adding the triangle's 3 edges as constraints nominally succeeds, but produces 3 unnecessary and incorrect triangles, one of which has zero area.
Image

I have seen similar issues with constraints that happen to correspond to a triangulation of the sites which is already Delaunay.
I could add some multiple triangle examples if that would helpful.

Code:
https://github.com/palisades-lakes/jts-issues/blob/main/src/main/java/jts/CDTBIssues.java

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions