Replies: 2 comments 1 reply
-
I can't really recall what happens in Clipper1 but I think it's the same as Clipper2, which is that you don't need to Clear() unless you are modifying input (subject & clip) paths. Just call Execute() again using the changed clipping op or fill rule.
I'm lost 😱, and I have no idea what you're tring to achieve.
Yes, that should be identical to adding all the paths in a single call.
It all depends on the filling rule. For example, if you're using EvenOdd then no, you'll get a hole at the smaller path.
Huh? I'm lost again. Why are you adding empty polygons and what is a 'call with 0 paths'? |
Beta Was this translation helpful? Give feedback.
-
Just a side comment regarding point #1, it wouldn't actually be hard to implement a "remove path" function... Perhaps both AddPath() and AddPaths() could return a "handle" (pointer, ID, whatever) that allows easy removal of the path later by RemovePath( handle ). You raise an interesting point with #2, how to keep the Vertex list between calls to minimize the overhead... But are you sure it's a bottleneck? There's really not that much processing there. And the list of local minima need to be rebuilt anyway. |
Beta Was this translation helpful? Give feedback.
-
What is the recommended efficient way to perform multiple boolean operations? Several examples (using C# version 1 of the library):
Beta Was this translation helpful? Give feedback.
All reactions