Skip to content

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.

2 participants