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

Regression 1.79.0: union operation of two polygons outputs zero polygons #1103

Closed
paulk125 opened this issue Dec 16, 2022 · 2 comments
Closed

Comments

@paulk125
Copy link

I have two polygons. Both are nearly unit squares. One is from (0,epsilon)-(1,1) and the other is from (0,-1)-(1,0). So these two squares are not quite touching. I would expect the geometry union operation to either return one merged polygon or two separate polygons. Instead it returns zero polygons.

Here is a godbolt link to duplicate the problem:
https://godbolt.org/z/P16oKM6Pn

Note that this bug affects 1.79 and later. If you change the compiler option in the godbolt link to include the 1.78 boost headers, then the union operation works fine:

-I/opt/compiler-explorer/libs/boost_1_78_0

@mclow mclow transferred this issue from boostorg/boost Dec 17, 2022
@barendgehrels
Copy link
Collaborator

Fixed by commit b1bebca
which also fixed #1100

@barendgehrels
Copy link
Collaborator

barendgehrels commented Sep 14, 2023

Unit test is added in #1202

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

No branches or pull requests

2 participants