-
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 #1184
Comments
Hi Volker! Thanks for the report and the clear reproduction scenario. I looked in the issue. I can reproduce it. It seems that the cause is that My extra code:
Delivering (coordinates you also listed):
If I make it
I don't think it is related to the issues you mention (though they are also about spikes, thanks for the links and the heads up there). To be complete, a figure (zoomed in), where And zoomed in more, where extra
and the spike in Side note: the output is here not optimal for integer. Using double, the intersection will follow and debug info:
where the area matches better as well. But this is not really related to removing the spike. |
Thank you for the quick and thorough reply! I've seen it in 1.79, but I assume you reproduced in 1.83? |
Yes, it's reproduced in 1.83 |
I've a concept fix, will create a PR later today (if the concept is fine) |
@barendgehrels Thank you! :) |
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.79.0.Please consider the following example as it occurred in our code:
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.
See also:
The text was updated successfully, but these errors were encountered: