VectorStyler
    • Categories
    • Unread
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Merging vectors that cross over themselves results in two divided objects

    Scheduled Pinned Locked Moved Features and Ideas
    4 Posts 3 Posters 4.5k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BoldlineB Offline
      Boldline
      last edited by Boldline

      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

      šŸŽ macOS Tahoe 26.2, Mac mini (M1, 2020), Chip Apple M1, Memory 16 GB
      Cintiq 27QHD Display and LG Ultra HD Display

      b77B VectorStylerV 2 Replies Last reply Reply Quote 0
      • b77B Offline
        b77 @Boldline
        last edited by b77

        @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=0~~

        LATER 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).

        MacBook Pro (Intel) running Monterey 12.6.4

        b77B 1 Reply Last reply Reply Quote 1
        • b77B Offline
          b77 @b77
          last edited by b77

          @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.

          MacBook Pro (Intel) running Monterey 12.6.4

          1 Reply Last reply Reply Quote 0
          • VectorStylerV Offline
            VectorStyler @Boldline
            last edited by

            @Boldline I added this to the backlog. The required tools are already available, but not yet accessible.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post