-
Notifications
You must be signed in to change notification settings - Fork 5
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
Clipping degeneracies #58
Clipping degeneracies #58
Conversation
Sg/update intersects
…/GeometryOps.jl into sg_ll/clipping_degeneracies
…/GeometryOps.jl into sg_ll/clipping_degeneracies
…/GeometryOps.jl into sg_ll/clipping_degeneracies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested this yet, but in terms of style there are a couple of points I wanted to bring up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments, tests look good
I am going to merge this. I have other performance things I am working on and Lana is going to make some more degeneracy improvements, so there will be plenty of time to comment on it going forward. |
This pull request handles degeneracies where the vertices of a polygon lie on the edges or vertices of the other polygon. These were implemented following the Foster 2019 paper.
The implementation in this pull request can still result in three types of "degeneracies": collinear points in the final polygon, a vertex appearing twice in the resulting polygon, and "glued edges" in the resulting polygon. We will deal with these cases in future pull requests. The issue of collinear points in the final polygon will most likely be dealt with in a post-processing step, while double vertices and glued edges can be addressed in the clipping algorithm by modifying the labelling of points. The ways in which we will address these degeneracies are discussed in the Foster paper.