Skip to content

Improve triangulation robustness#1212

Open
micycle1 wants to merge 2 commits into
locationtech:masterfrom
micycle1:fixup
Open

Improve triangulation robustness#1212
micycle1 wants to merge 2 commits into
locationtech:masterfrom
micycle1:fixup

Conversation

@micycle1

@micycle1 micycle1 commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

isInCircleRobust now computes the in-circle determinant in doubles with a Shewchuk-style error bound: if the magnitude clears the bound, the sign is provably correct and returned at full speed; otherwise it falls back to the existing isInCircleDDNormalized extended-precision evaluation.

Vertex.isCCW now uses Orientation.index.

~12% slower on a 200k random-point triangulation.

Closes #20, #298, #310, #1190 (and therefore #1138), GEOS #1286, and supersedes PR #311.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Robustness failure in VoronoiDiagramBuilder

1 participant