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

Clipping degeneracies #58

Merged
merged 46 commits into from
Mar 3, 2024

Conversation

LanaLubecke
Copy link
Contributor

@LanaLubecke LanaLubecke commented Feb 29, 2024

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.

skygering and others added 30 commits October 2, 2023 16:55
…/GeometryOps.jl into sg_ll/clipping_degeneracies
@skygering skygering requested a review from rafaqz February 29, 2024 07:15
@asinghvi17 asinghvi17 changed the title Sg ll/clipping degeneracies Clipping degeneracies Feb 29, 2024
Copy link
Member

@asinghvi17 asinghvi17 left a 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.

src/try.jl Outdated Show resolved Hide resolved
src/methods/clipping/clipping_processor.jl Show resolved Hide resolved
src/methods/clipping/clipping_processor.jl Show resolved Hide resolved
src/methods/clipping/clipping_processor.jl Show resolved Hide resolved
test/methods/clipping/polygon_clipping.jl Show resolved Hide resolved
Copy link
Member

@rafaqz rafaqz left a 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

src/methods/clipping/union.jl Outdated Show resolved Hide resolved
src/methods/clipping/clipping_processor.jl Show resolved Hide resolved
@skygering
Copy link
Collaborator

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.

@skygering skygering merged commit 77905eb into JuliaGeo:main Mar 3, 2024
3 checks passed
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.

4 participants