Inkscape.org
Beyond the Basics New Boolean or Macro?
  1. #1
    msraynsford msraynsford @msraynsford

    I end up doing the same operation quite a lot while I'm drawing for my laser cutting and I wonder if there's a better way for me to do this or if there's space for a new Boolean operation.

    If I'm laser cutting two shapes together I need the outline to be one continuous line so I perform a union to join the shapes together.
    I also want to keep all the overlapping lines as detail between the two so I duplicate all the items before the union, then perform an intersection on the two items and finally go into the nodes and manually remove the half of the lines I no longer want. This can obvious be pretty manual and intensive on some of the more complicated shapes.

    It feels like this might be a very useful feature to add as a new Boolean operation. The overlapping section becomes it's own new object.

  2. #2
    Polygon Polygon @Polygon🌶
    *

    Mmmh - I doubt Boolean operation will give a single open stroke as a result.

    You can do something similar with duplicates of each objects via Path->Intersection - break path at selected node and delete corner node:

    Or do you need something like this?

  3. #3
    msraynsford msraynsford @msraynsford

    That's definitely one other way I tried to do this early on but it's just as much work as my current way. You still have to go in and remove a whole bunch of nodes manually. This is why I'm wondering if it could be added in as another Boolean. Sadly my python skills are non existent so not something I can add myself.

  4. #4
    Polygon Polygon @Polygon🌶

    As I said Booleans won´t operate with strokes - just shapes.

  5. #5
    msraynsford msraynsford @msraynsford
    *

    The cut path Boolean cuts shapes into paths (strokes?), so Booleans do produce strokes. I know the Booleans won't function on strokes, only closed shapes that's not what I'm asking.

    What I'm after is like a combination of the union operation and the cut path operation.
    Two overlapping shapes combines in a union to create one single shape outline. (simple Union Boolean)
    The intersection of between the two shapes converted into a single stroke based upon the Z order. (Like the Cut Path Boolean)

     

     

  6. #6
    Polygon Polygon @Polygon🌶

    You´re talking about Laser cutting in first place - I don´t get this together.

    Cut Path won´t give a stroke as a result -  just new nodes.

  7. #7
    msraynsford msraynsford @msraynsford
    *

    Then I'm not sure what you are asking? What do you mean by Stroke? Do you just mean the colour of the line?
    I only changed the colour (stroke?) to demonstrate what I needed. I don't want to change the colours only to produce a new line from the combination of two shapes.

    This is the section of line I require that takes a lot of manual work to produce. A Boolean operation that could produce this output would still be incredible useful.

  8. #8
    Polygon Polygon @Polygon🌶

    I´m not a dev - just using vector graphics since 1987 in 2d and 3d.

    Fell free to discuss your idea here: https://chat.inkscape.org/channel/team_devel

  9. #9
    inklinea inklinea @inklinea⛰️

    If you are happy to just delete the paths which are left over:

    https://inkscape.org/~Moini/%E2%98%85multiple-boolean-operations-with-inx-pathops

  10. #10
    Paddy_CAD Paddy_CAD @Paddy_CAD

    This extension might help. https://inkscape.org/~EllenWasbo/★remove-duplicate-lines-with-tolerance

    Link to a related post. https://inkscape.org/forums/Deutsch/uberschneidungen-auflosen/#c35574