Equivalent to PolyNode->IsOpen() in V2? #301
-
With the disclaimer that I am quite a newb when it comes to analytic clipping, so please forgive me if the question is off base :) In V1, when we convert a Or does it even make sense to have a mix of open and closed paths in the subject? Any help is much appreciated! 🙏🏻 Thank you so much for all your work, I am really hoping we can migrate to the new version! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Eric, and welome to Clipper2 Discussion. |
Beta Was this translation helpful? Give feedback.
Hi Eric, and welome to Clipper2 Discussion.
As the documentation states, Polytrees (in Clipper2) will never contain open paths.
If the clipping op includes open paths, then Clipper64/ClipperD's Execute will return them via a separate Paths64/PathsD parameter.
I made this change from Clipper1 because open paths will never be contained by or will themselves contain other paths, so it made no sense including them in Polytree objects.