Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix incorrect voronoi diagram for 5 collinear points #147

Merged
merged 2 commits into from
Jul 14, 2024
Merged

Conversation

Fil
Copy link
Member

@Fil Fil commented Jul 12, 2024

This fixes #146 by adopting a simpler jittering strategy in the collinear case

Sharing for discussion, because this "fix" is really feeble: if we increase the radius a little bit more (to 5e-8), another test breaks. I'd like to find a more robust approach.

Maybe at some point we'll need to create a fake voronoi diagram from scratch, rather than replay with jittered points, but it seems that this is working well enough for now.

closes #146

…ide range of values of r (between 1e-11 and 1e-8)
@Fil Fil marked this pull request as ready for review July 12, 2024 08:55
@Fil Fil requested review from mbostock and mourner July 12, 2024 08:55
@Fil Fil merged commit c1f5b52 into main Jul 14, 2024
1 check passed
@Fil Fil deleted the fil/fix-collinear branch July 14, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect Voronoi Diagram for simple test case
3 participants