I have been unable to find out exactly why the following causes an issue:
var subject = [
[ 129.25, 43.25 ],
[ 127.25, 43.25 ],
[ 127.25, 44.25 ],
[ 129.25, 44.25 ]
];
var clip = [
[ 129.25, 45.25 ],
[ 130.25, 45.25 ],
[ 130.25, 43.25 ],
[ 129.25, 43.25 ]
];
PolygonBoolean(subject, clip, 'or');
It seems crt is getting set to null within collectClipResults because it is getting replaced with crt.neighbor. This function works fine for hundreds of other attempts with other coordinates.
Thanks for you hard work on this library. It has proved invaluable.
I have been unable to find out exactly why the following causes an issue:
var subject = [
[ 129.25, 43.25 ],
[ 127.25, 43.25 ],
[ 127.25, 44.25 ],
[ 129.25, 44.25 ]
];
var clip = [
[ 129.25, 45.25 ],
[ 130.25, 45.25 ],
[ 130.25, 43.25 ],
[ 129.25, 43.25 ]
];
PolygonBoolean(subject, clip, 'or');
It seems crt is getting set to null within collectClipResults because it is getting replaced with crt.neighbor. This function works fine for hundreds of other attempts with other coordinates.
Thanks for you hard work on this library. It has proved invaluable.