Skip to content

Proper clipping of degenerate polygons: #197

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

Merged
merged 3 commits into from
May 27, 2020
Merged

Proper clipping of degenerate polygons: #197

merged 3 commits into from
May 27, 2020

Conversation

Fil
Copy link
Member

@Fil Fil commented May 3, 2020

instead of adding epsilons at the "clipcircle" stage, we pass an explicit message in coordinate z that this point should not be mixed with the previous point, and add the epsilons later, at the "rejoin" stage.
Closes #196 and vega/vega#2572

Relevant notebooks:

instead of adding epsilons at the "clipcircle" stage, we pass an explicit message in coordinate z that this point should not be mixed with the previous point, and add the epsilons later, at the "rejoin" stage.
Closes #196 and vega/vega#2572

Relevant notebooks:
- https://observablehq.com/d/4175cc6263b949d1 (reproduces the original bug)
- https://observablehq.com/d/32bce1e0b8e4f9a1 (fixes the bug with geoStitch)
- https://observablehq.com/d/5380dd24622eca74 (reduced test case)
- https://observablehq.com/d/495020ca139c39bd (images for the unit test in this commit)
@Fil
Copy link
Member Author

Fil commented May 3, 2020

(I also tested the code with d3-geo-projection and d3-geo-polygon. All unit tests and visual tests pass.)

@Fil Fil merged commit 68b0fc1 into master May 27, 2020
@Fil Fil deleted the clipcircle-196 branch May 27, 2020 07:57
@Fil Fil mentioned this pull request May 29, 2020
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.

Clip circle & degenerate polygons
1 participant