martinez: A case where intersection is incorrect
Hi,
I am not sure if it is due to the polygons are self-intersecting, or that the borders are overlapping, but I have a case where the intersection (as well as most of the other operations) give incorrect results.
The polygons used:
var p0_x = [ [ [0,0], [0,1], [1,0], [1,1], [0,0] ] ];
var p1_x = [ [ [0, 0.5], [0, 1.5], [1, 0.5], [1, 1.5], [0, 0.5] ] ];
Using the pen by AtiX (thx:) -

Gives an intersection -

and union -

About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 35 (18 by maintainers)
FYI, I am splicing world map into vector tiles, then I went into this problem. The connection with this issue is the overlapping edge. I have added a buffer to avoid overlapping edges, but it would be good that this bug be fixed~ Cheers!
This case cause infinite loop: