Menu

#200 Difference computation of simple polygons gives incorrect resulting polygon

*
open
nobody
None
1
2020-03-30
2020-03-30
Anonymous
No

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 :

  • subject polygon (FillType : NonZero) :
[[1.52275,1.04595, 1.52275,1.04985, 1.04165,1.04985, 1.04165,1.04595]]
  • clip polygons (FillType : NonZero) :
[[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]]
  • Strictly simple
  • Difference
  • No offset
  • Scale (>1e5 on live js)

Thank you for your work,

Regards

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB