Closed OliverColeman closed 4 years ago
Hello, @OliverColeman ,
Big fixed in release v1.2.9 Now construction of polygon like
const emptyP = new Polygon([]);
gives the same result as
const emptyP = new Polygon();
The result is empty polygon with zero number of faces. Then all boolean operations gives correct result.
Thank you, Alex Bol
I get an error when passing an empty polygon as one of the arguments to the intersect or subtract boolean operations. Eg see the console output at https://codesandbox.io/s/late-https-8sjsf?file=/src/index.js
I expected output for intersect to be empty polygon.
I expected output for subtract to be same as the first polygon passed.
If the current behaviour is an error I'm happy to submit a PR.
In my browser console the error looks like: