-
Notifications
You must be signed in to change notification settings - Fork 214
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
boost::geometry::intersection algorithm creates spike #1022
Comments
Hi @vschoech , Thanks for the report! I'm trying to reproduce it, but without success. The output of the first case is: This is zoomed in a lot, in Inkscape, and you see the intersection and its vertices in magenta. There is no spike. The output of the second case is: Also zoomed in a lot, and it's not a spike. This is without removing spikes, but with your environment (integer, open, counter clockwise multipolygons) Note that I'm using Boost Head (~ Boost 1.79) for this test. The intersection for integers is changed recently, a rounding error is fixed and this might reduce the number of spikes. Is it possible for you to update Boost? |
Thank you for the very helpful feedback and the connection to existing issues. I'll check with the latest Boost version and then return to this issue to confirm whether or not it has been resolved. Please be patient, it will take a while. |
We updated our code base to boost 1.79.0 and I'm happy to confirm that I cannot reproduce this issue any more. |
Thanks for conforming @vschoech ! |
My
tc::geo::polygon<int>
type is actually a multi-polygon, using a polygon type that is based on int, oriented counter-clockwise and open (not closed). I am using boost 1.75.0.Please consider the following example as it occurred in our code:
Alternatively, consider the following simplified example:
It was my expectation that when the input does not contain spikes, neither does the output from boost::geometry::intersection. Please clarify whether my assumption is wrong or there is a bug in boost::geometry::intersection.
The text was updated successfully, but these errors were encountered: