You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letrects=[[// rect 1[10,10],[20,10],[20,20],[10,20],],[// rect 2[20,20],[30,20],[30,30],[20,30],],[// rect 3[10,30],[20,30],[20,40],[10,40],],];letpoly=PolyBool.union({regions: rects,inverted: false,},{regions: [],inverted: false,});
Why rect 1 and rect 2 is not merged, but rect 2 and rect 3 is merged?
Is there any way to disable this corner to corner union?
Sorry for my broken english.
The text was updated successfully, but these errors were encountered:
Sorry for the late reply, I don't check here very often anymore.
To answer your question: the library does not make promises about how the final object is built, other than it will be the correct boolean result. It could have just as easily created three regions.
The result is correct, as far as the library is concerned. If you want to do further simplification by attempting to combine regions, then that's outside the scope of this library.
Why rect 1 and rect 2 is not merged, but rect 2 and rect 3 is merged?
Is there any way to disable this corner to corner union?
Sorry for my broken english.
The text was updated successfully, but these errors were encountered: