self intersecting polygons #545
-
Hello, I used this program to perform simple polygon Union and or Difference operations. The produced results have self intersecting polygons, and the result of self intersecting polygons were Union operations again, becoming simple polygons. Why is this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Would you be able to share some example code that highlights what you are asking about? Without that, it's difficult to understand or reply in context. |
Beta Was this translation helpful? Give feedback.
-
This looks to be an edge case for the touching notes in the documentation here : http://www.angusj.com/clipper2/Docs/Overview.htm#touching If .I extend the horizontal cutters by 1 unit each side, the solution seems to be clean. If I reverse the arrays for the paths, so that X <-> Y, the edges are also clean. I did find that running a Union of the subj and clip before the clipping operation helped clean things up :
|
Beta Was this translation helpful? Give feedback.
This looks to be an edge case for the touching notes in the documentation here : http://www.angusj.com/clipper2/Docs/Overview.htm#touching
If .I extend the horizontal cutters by 1 unit each side, the solution seems to be clean. If I reverse the arrays for the paths, so that X <-> Y, the edges are also clean.
I did find that running a Union of the subj and clip before the clipping operation helped clean things up :