Skip to content

Conversation

@dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Jan 12, 2026

Adds a heuristic to snap vertices of constructed Voronoi diagrams to fix invalid topology. This can occur when the input contains nearly co-circular sites. See #1171 for details and examples.

The fix is gated with a efficient test for polygons containing short segments which are invalid. This means that most typical inputs will not be snapped.

Fixes #1171

@dr-jts dr-jts merged commit 9e1153b into locationtech:master Jan 12, 2026
2 checks passed
@dr-jts dr-jts deleted the add-voronoi-snapping branch January 12, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid Voronoi diagram due to cocircular input points

1 participant