-
Notifications
You must be signed in to change notification settings - Fork 216
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
Regression 1.78.0 - 1.79.0 (still in 1.82.0): difference of two polygons gives unexpected empty result #1138
Milestone
Comments
gastald88
changed the title
Regression 1.78.0 - 1.79.0: difference of two polygons gives unexpected empty result
Regression 1.78.0 - 1.79.0 (still in 1.82.0): difference of two polygons gives unexpected empty result
Apr 26, 2023
Thanks for filing this issue. I can reproduce your issue locally. However, defining BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE (before all includes) is working for me. |
Thanks for your answer, |
Unit test in #1202 |
barendgehrels
added a commit
that referenced
this issue
Sep 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have two polygons p1 and p2, where the difference p1 - p2 is clearly non-empty (see image, p1 blue, p2 orange), but the difference operation returns an empty polygon.
Here below a godbolt link to replicate this problem:
https://godbolt.org/z/YTjM3GG1G
The result is correct in boost version 1.78.0 (you can set at the godbolt platform in the compiler arguments
-I/opt/compiler-explorer/libs/boost_1_78_0)
From version 1.79.0 on (until the 1.82.0 that I recentely tested on my local environment) the result is incorrect.
I also tried to define the macro BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE, but the bug is still there.
The text was updated successfully, but these errors were encountered: