Difference computation of simple polygons gives incorrect resulting polygon
Polygon and line clipping and offsetting library (C++, C#, Delphi)
Brought to you by:
angusj
Hi,
First of all, thank you for this powerful library !
I have an issue with simple polygons difference computation, it should give 2 resulting polygon but I get only one (on Cpp/C#), using Javascript live demo and enabling "polygon simplying" I am able to get my 2 expected polygons.
I tried several versions starting from 6.4.2 and downgrading until 6.1.2, and with the 6.1.2 version I am able to get expected polygons (on c++/c#/livejs).
Here are the configuration i use :
[[1.52275,1.04595, 1.52275,1.04985, 1.04165,1.04985, 1.04165,1.04595]]
[[1.04165,1.04985, 1.04165,1.53095, 1.03775,1.53095, 1.03775,1.04985],[1.52275,1.53095, 1.52275,1.04985, 1.52665,1.04985, 1.52665,1.53095],[1.03775,1.04985, 1.03775,1.04595, 1.04165,1.04595, 1.04165,1.04985],[1.28995,1.04985, 1.28995,1.04595, 1.29385,1.04595, 1.29385,1.04985],[1.52275,1.04985, 1.52275,1.04595, 1.52665,1.04595, 1.52665,1.04985]]
Thank you for your work,
Regards
Anonymous