Open lukas-boeger-oxb opened 2 weeks ago
Thanks for the report! I can reproduce the issue and will work on a fix, hopefully in November.
Yes, we removed rescaling - so a behaviour change can be there.
For this particular case, if using float
the (textual) output looks all right. But in general we recommend double
as you reported.
Part of textual output: areas of a/b (inputs) and union, which looks like the double of b but that should never happen.
a: 16.4881306858 b: 23.1972563788 uni: 56.17724582
With float it is:
16.4881305541 b: 23.1972562206 uni: 23.200984294
I can reproduce the issue and will work on a fix, hopefully in November.
Amazing, thank you!!
For this particular case, if using float the (textual) output looks all right. But in general we recommend double as you reported.
Indeed, the visualisation confirms this, using 1.85 and float
instead of double
:
This issue might be a duplicate of #1226 or #1179, and if we can confirm this, happy for this ticket to be closed of course. But the additional example might still be worth filing it. The following two polygons share common vertices:
When computing the
union_
, the result is intuitively correct when using Boost 1.77:With Boost 1.85 or 1.86, this becomes
The code to reproduce this is as follows (omitting includes etc. for brevity):
I hope this is enough context to make this reproducible. Let me know otherwise, then I will provide more information. Also, I understand that such algorithms don't always have a "right" or "wrong" result, and this might be an unfortunate edge case. Since it's a clear behavioural change compared to v1.77, I would appreciate your opinion on this one.