Open devbab opened 4 years ago
Try to remove the duplicate points:
let polyA = [
[49.05351, 1.44728],
[48.43959, 1.88663],
[48.77105, 2.22033],
[48.98882, 2.12906]
];
let polyB = [
[48.33984375, 1.93359375],
[48.515624999, 1.93359375],
[48.515624999, 2.109374999],
[48.33984375, 2.109374999]
];
console.log(GreinerHormann.intersection(polyA, polyB));
console.log(GreinerHormann.intersection(polyB, polyA));```
with below polygons, it does not provide same results doing intesrection A and B or B and A.