-
Notifications
You must be signed in to change notification settings - Fork 87
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
Weiler atherton clipping method #999
base: master
Are you sure you want to change the base?
Conversation
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.
That is an amazing contribution @jnemanja, thanks for putting the time into it. We will need to adjust the code over the week to match the style of the project, and to make sure that the behavior is correct.
Can you please address this first round of review below? Thank you!
b49b6d7
to
d9c1031
Compare
d9c1031
to
6772ec2
Compare
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.
Another round of review related to code style before we can start reviewing the algorithm itself.
6772ec2
to
815c412
Compare
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.
@jnemanja can you please rebase this PR to the latest master branch, and rename WeilerAtherton
to WeilerAthertonClipping
to be more explicit?
As we are preparing for a v1.0, we will be more careful with naming methods. We already renamed SutherlandHodgman
to SutherlandHodgmanClipping
for clariry.
9e66a2c
to
7c147a1
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #999 +/- ##
==========================================
+ Coverage 87.69% 87.85% +0.16%
==========================================
Files 191 192 +1
Lines 6005 6226 +221
==========================================
+ Hits 5266 5470 +204
- Misses 739 756 +17 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
7c147a1
to
bd5c309
Compare
Added tests to reach full coverage. Also, in the process I noticed that the order of rings in the polygons with holes is not always proper, so added a fix for that. |
bd5c309
to
cacfb83
Compare
And rebased to latest again. |
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.
@jnemanja thank you for the great work here, and for fixing the orientation of polygons in other unrelated tests.
In this second round of review I took a closer look into the implementation. I think we can simplify it a bit more, and reuse functionality in the auxiliary functions.
42c354f
to
8cb00d7
Compare
And rebased to the newest version. |
8cb00d7
to
07778b0
Compare
7df4f27
to
e64b843
Compare
e64b843
to
51955ff
Compare
@jnemanja did you have a chance to take a look into this PR? |
I am not aware of any additional issues I should address. If I missed something, could you point it out. |
I believe that tests will fail with the latest commits, but I did trigger the bot again to be sure. |
51955ff
to
fa40e3b
Compare
The tests were successful, but the docs failed. Fixed that now and rebased to the newest release. |
fa40e3b
to
4d9dc58
Compare
e9d2e4f
to
bc00ca3
Compare
bc00ca3
to
2a2f4cb
Compare
2a2f4cb
to
db1fae7
Compare
test/clipping.jl
Outdated
# Tolerances are not properly retrieved for Float32 types, so need to pass them explicitly. | ||
atol_el = coords(cart(0.0)).x |
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.
@jnemanja could you please elaborate on this tolerance issue? Why can't we use the default atol
in the following test?
Improve comments and algorithm description
db1fae7
to
7309ea3
Compare
Improve clipping in clipped test Improve points deduplication and removal of repeated entering vertices
7309ea3
to
72411c3
Compare
In draft because testing should have more cases and documentation probably needs some improvements. An extra commit is added with informal testing used during development, which is to be discarded before merge.