-
Notifications
You must be signed in to change notification settings - Fork 675
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
feat(universe_utils): add Polygon Clipping implementation to do boolean operation on Polygons (XOR, OR, AND) #8728
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
common/autoware_universe_utils/include/autoware/universe_utils/geometry/polygon_clip.hpp
Outdated
Show resolved
Hide resolved
common/autoware_universe_utils/include/autoware/universe_utils/geometry/polygon_clip.hpp
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8728 +/- ##
==========================================
+ Coverage 29.21% 29.76% +0.54%
==========================================
Files 1439 1598 +159
Lines 108115 128955 +20840
Branches 42638 52567 +9929
==========================================
+ Hits 31588 38379 +6791
- Misses 73485 86327 +12842
- Partials 3042 4249 +1207
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Description
Added new polygon clipping function within universe_utils to do boolean operation on multiple polygons using Greiner-Hormann clipping algorithm.
Related links
Parent Issue:
How was this PR tested?
Unit and random test.
Conducted a performance comparison and point-wise evaluation using an epsilon of 1 with the functions
boost::geometry::difference
,boost::geometry::union_
, andboost::geometry::intersection
. Additionally, verified results withShapely
using an epsilon of 1e-6.Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.