Closed lambertwx closed 2 years ago
Hello, @lambertwx
The notebook your forked use deprecated package @flatten-js/boolean-op
Now Boolean operations are part of the @flatten-js/core
package under Flatten.BooleanOperations
namespace
I updated your notebook, now it works as expected:
https://observablehq.com/d/bd5f6d4c6bb942af
Best, Alex
Thank you for your rapid response and easy solution!
I'm excited to use this library, but my application involves boolean operations on polygons A and B that often have an edge from B lying exactly on an edge from A. E.g.,
I forked your Boolean Operations notebook in Observable to https://observablehq.com/d/583407ca72e68684 so I could try this out, and quickly found that in such situations all of flatten-js's boolean polygon operations raise an exception
Is this a known limitation of your implementation of Atherton Weiler polygon clipping? Or are these routines intended to handle collinear edges and this is just a bug?