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

Remove unnecessary holes from output #149

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rowanwins
Copy link
Collaborator

@rowanwins rowanwins commented Apr 4, 2022

This attempts to fix up unnecessary holes being written into the output. I'm a bit unsure about this PR - it works for the case provided but my mind is second guessing itself as to whether it will work in other circumstances...

Fixes #69
Fixes #68

@rowanwins
Copy link
Collaborator Author

As suspected this causes issues for other cases... it's almost like we need to do a point-in-polygon check on the first event to see if it lies inside an existing contour, and if so then it's a valid hole, and if not it needs to be culled.

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.

Incorrect inner ring added to diff result. outer ring added to wrong polygon in diff() result.
1 participant