geometry icon indicating copy to clipboard operation
geometry copied to clipboard

Difference returns wrong result if hole touch the boundary of subtrahend

Open evgeniyfeder opened this issue 1 year ago • 1 comments

Hello Actual result: Purple - orange = green. Expected result: blue

I noticed that the problem was added in 1.77->1.78. Related PR could be: https://github.com/boostorg/geometry/pull/887

https://godbolt.org/z/s7zKKbG61

evgeniyfeder avatar Feb 22 '24 18:02 evgeniyfeder

Thanks for the report and the potential related PR, I can reproduce it. Clockwise is fine, but counter clockwise is wrong.

barendgehrels avatar Mar 03 '24 09:03 barendgehrels

Fixed by https://github.com/boostorg/geometry/pull/1263

vissarion avatar Apr 01 '24 10:04 vissarion