We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with below polygons, it does not provide same results doing intesrection A and B or B and A.
let polyA = [ [49.05351, 1.44728], [48.43959, 1.88663], [48.77105, 2.22033], [48.98882, 2.12906], [49.05351, 1.44728] ]; let polyB = [ [48.33984375, 1.93359375], [48.515624999, 1.93359375], [48.515624999, 2.109374999], [48.33984375, 2.109374999], [48.33984375, 1.93359375] ]; console.log(GreinerHormann.intersection(polyA, polyB)); console.log(GreinerHormann.intersection(polyB, polyA));
The text was updated successfully, but these errors were encountered:
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));```
Sorry, something went wrong.
No branches or pull requests
with below polygons, it does not provide same results doing intesrection A and B or B and A.
The text was updated successfully, but these errors were encountered: