Inkscape.org
Beyond the Basics Deleting overlapping lines
  1. #1
    COD COD @COD

    Anyone know of a method or extension to delete overlapping paths? In this particular case, the shorter of the two paths. In some of my designs, I might have hundreds of these overlapping lines. Deleting by hand is not a solution. I believe Lightburn has this capability?

    I have come across this extension: https://inkscape.org/~EllenWasbo/★remove-duplicate-lines-with-tolerance but was not successful with it.

  2. #2
    Paddy_CAD Paddy_CAD @Paddy_CAD

    This extension might help you.
    https://inkscape.org/~jgk/%E2%98%85cut-and-remove-by-shape-extension

    I've also used this in the distant past.
    https://github.com/funnypolynomial/DestructiveClip

    And here's an old related post.
    https://inkscape.org/forums/questions/cut-path-and-then-delete-lines-not-covered-by-cutting-path/

  3. #3
    COD COD @COD

    Thanks - 
    Something that has been jinxing me for a long time. I would imagine something to do this would be very complex to code. Would have to break paths down to sub paths and compare them to each other. If I find a method - will report back. 

    Side note - this extension works perfectly for removing duplicate nodes. Use it quite a bit.
    https://inkscape.org/~EllenWasbo/★removeduplicatenodes
     

  4. #4
    COD COD @COD
    *

    Path > Union almost does all of the work for me. Does it beautifully too. If I can figure out how to add the red diags. Will play around with those extensions you mentioned. 
    Duplicate the original. Take one copy and union it. Grab both copies and apply that extension. Hmmmm - maybe? lol

    Edit: Tried the extensions. Nope. The following method seems better than node editing. Yuck.
    Note:The deep ungroup is to correct a behavior of combining nested groups of objects/symbols. You end with a freaking mess with the resulting combine buried in a stack of empty objects (no path data). 

  5. #5
    David248 David248 @David248
    *

    Hello

    It looks like all symbols are groups : I don't get why : perhaps you use more complex symbols ?

    Is there a need to have all symbols as closed shapes ? On the example below, could theses symbols be open paths ? I guess you have a good reason to avoid open paths.

     

     

    I suppose that flatten isn't an option, because of its "stroke to path effect".

    BTW : I wondered why there were additional nodes on straight lines (IMHO, generally, the fewer nodes there are, the better is the design) I understood why when reassembling the parts: it's a really smart idea to further help snapping.

     

     

  6. #6
    COD COD @COD

    Thanks david - 
    Yes - they can be open shapes. In fact I created two symbol files a few months back to somewhat solve this issue. I was hoping I could find a quick and dirty cheat to convert existing patterns. The above method is acceptable. 

    BTW : I wondered why there were additional nodes on straight lines (IMHO, generally, the fewer nodes there are, the better is the design) I understood why when reassembling the parts: it's a really smart idea to further help snapping.

    Yeah - that was the thinking. Most of these designs were created in 90's. Ported over to Corel then to Inkscape. When I discovered Inkscape's symbol capabilites - the universe changed.  At one time I had close to 800 symbols. Spent most of my time asking "Where is that cord  that will fit here?"

    When Inkscape introduced the Shape builder tool, it radically changed my thinking. The following will handle about 90% of my trillions and trillions and trillions of patterns. The other 10% can be handled by node hacking and the Shape Builder tool.  

    Yes- I use nested groups of symbols in my designs. Atoms -> molecules -> amino acids -> to dna. The symbol cords are my atoms. 


     

  7. #7
    COD COD @COD
    *
    David248

    It looks like all symbols are groups : I don't get why : perhaps you use more complex symbols ?

    Yes - I use nested groups of symbols, makes construction easier and faster. I will look for patterns. Group them. Reuse them. Sort of like a Lego block concept. It also makes it easier to deconstruct them and use the "molecules" in another design. I guess in programming lingo, they would be called subroutines? 

    In this - you will see a ton of duplicate patterns. Some are simply rotated/flipped. Some are mirrored. Once you see the basic pattern "molecule" - simply group them and duplicate them - then connect them with other cord symbols.