gotcha

Author Topic: Any way to Cut Path without deleting the path that does the cutting?  (Read 1250 times)

May 27, 2018, 01:49:27 PM
Read 1250 times

cakrizan

  • Newbie

  • Offline
  • *

  • 1
I've been trying to use Inkscape to path the linework for custom puzzles, and I'm getting hung up on one aspect. My puzzles contain very uniquely shaped pieces, and I'm often trying to drop in odd connectors after finishing two adjacent pieces. Which requires the removal of sections of two different paths.

Union does the trick if I'm dealing with two closed paths, but I'm often dealing with an open path.

I've attached images of the before and after of what I'm trying to accomplish. In this case, I have a closed path (the star shape), and an open path (the other line is a simple arc).

It seems like if I could use "Cut Path" without the cutting path disappearing, I could easily make the breaks where I need them, and just delete the broken parts that I don't need. However, I can't seem to find a trick for how to do this. Any advice is very much appreciated!


May 28, 2018, 01:02:20 PM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

Yeah, this is a frustrating situation to handle with Inkscape.  I've heard requests for a tool (some call it a razor) where you can just drag it across a path and cut it.  But that doesn't exist at present.  Unfortunately, it's just the way the path operations work, that the one on top is sacrificed.

Other people may have other ways to handle this, but what I do is duplicate both pieces.  Let's say A1 and B1 are the originals, and A2 and B2 are the duplicates.

1 -- Put B1 on top of A1 and do the path operation
2 -- Put A2 on top of B2 and do the operation again

Now both pieces are ready to be patched together, by joining the nodes.

Or another idea might be to temporarily close the open path.  Then you could use  Union.  Then after unioning you'd have to edit the part of the path which was open before.

But I'm trying to understand about

....trying to drop in odd connectors....

I can't quite imagine the situation.  Do you mean that you would have 2 pieces which are not adjacent, but you want to connect them together?  Doesn't that mean you have to actually edit at least 3 pieces - the 2 to be connected, and at least one piece which is getting split in two?  I wonder if you could use a closed path for that? 

Because if I'm not mistaken, you can Union more than one object.  You'd have to duplicate the closed path which would be used as the connector, so that you can difference it from the 3rd piece.

It sounds like a fun project!
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

May 28, 2018, 04:24:07 PM
Reply #2

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
There's an extension that might come in handy - it allows you to keep the original paths, if you want to, for Boolean operations.

https://gitlab.com/su-v/inx-pathops