Merging vectors that cross over themselves results in two divided objects
-
I wanted to see if this handy trick could be added to VS. It's something I used often in Illustrator.
If you have a vector shape that crosses over itself - like in this video attached, or when you don't perform a "normalize winding", if you were to merge the shape at that point, it would result in a break in the vector, resulting in 2 individual shapes
-
@Boldline There is no single command that does this, but you can load and run this action from
https://www.dropbox.com/sh/axusqnbe0w8f34c/AABqObfn4FFUY6OHAtN7Ojnva?dl=0LATER EDIT: Superseded in version 1.1.051 by the 'Separate at Intersections' command in the Object menu > Shape.
It basically adds nodes where the segments intersect, normalizes the winding, separates the shape apart and closes both resulting shapes with 'Join Shape'.
Let me know if it works there.
(To load it, choose 'Open from File…' from the Action panel's menu).
-
@VectorStyler Btw, is there a way to handle possible errors with a 'try/end try' statement?
The last step (Join Shape) in this action works but gives a warning if the initial shape has three or more overlapping segments, not just one, that's why I'm asking.
-
@Boldline I added this to the backlog. The required tools are already available, but not yet accessible.