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 triangulation issues regarding point-in-polygon test #448

Merged
merged 5 commits into from
Apr 9, 2022
Merged

Conversation

hannobraun
Copy link
Owner

This pull request mostly rewrites the point-in-polygon test, adding a test suite to provide some assurance. The point-in-polygon test was responsible for one class of triangulation bugs that seems to have cause pretty wide-spread issues.

Close #105
Close #143

This struct is specifically made for the point-in-polygon test. It it
simpler than the currently used ray from Parry, allowing it to be more
robust, and most importantly, provide exactly the feedback that the
point-in-polygon test needs in a robust manner.
This leaves one known edge case unfixed, and that's passing through a
vertex at the seam of the polygon in the presence of interior polygon
chains. I'm going to fix that in a follow-up commit, as that's going to
require some additional cleanup.
The ray leaving the polygon through the seam, was not detected in the
presence of multiple polygonal chains. Now it is.
@hannobraun hannobraun enabled auto-merge April 9, 2022 14:00
@hannobraun hannobraun merged commit 6f76a33 into main Apr 9, 2022
@hannobraun hannobraun deleted the ray branch April 9, 2022 14:04
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.

Star model displays triangulation issues Add test suite for triangulation code, fix edge cases
1 participant