I have seen various comments on various forums about the following, but never a completely clear answer.
I'm using inkscape to create SVGs to feed to a laser cutter. Each file is comprised of multiple objects whose boundaries abut each other, resulting in overlapping lines. If I send such a file to the cutter it will run the laser over the same overlapping segment twice because there are two separate line segments there even if visually it appears as one.
The attached file has three square objects that exhibit this issue in two ways. The red and blue squares have one overlapping edge - the bottom of the red and top of the blue. The two segments have the same endpoints. The potentially trickier case is the green square, whose left boundary overlaps with the lower half of the red's right side and upper half of the blue's right side.
I would like to create a new version of the SVG where no line segment is cut duplicate times - or in other words, I'd like to remove all redundant line segments.
The attached file is intentially simple to explain the issue, and if this was all I had I could remove the segments manually. However, in my actual designs there are many many such overlaps, and it is a tedious and error-prone process to manually remove all overlaps.
Is there an extension or other mechanism for removing overlapping lines, particularly when the overlap doesn't correspond to segments with identical endpoints (such as with the green square's overlap)?
I have seen various comments on various forums about the following, but never a completely clear answer.
I'm using inkscape to create SVGs to feed to a laser cutter. Each file is comprised of multiple objects whose boundaries abut each other, resulting in overlapping lines. If I send such a file to the cutter it will run the laser over the same overlapping segment twice because there are two separate line segments there even if visually it appears as one.
The attached file has three square objects that exhibit this issue in two ways. The red and blue squares have one overlapping edge - the bottom of the red and top of the blue. The two segments have the same endpoints. The potentially trickier case is the green square, whose left boundary overlaps with the lower half of the red's right side and upper half of the blue's right side.
I would like to create a new version of the SVG where no line segment is cut duplicate times - or in other words, I'd like to remove all redundant line segments.
The attached file is intentially simple to explain the issue, and if this was all I had I could remove the segments manually. However, in my actual designs there are many many such overlaps, and it is a tedious and error-prone process to manually remove all overlaps.
Is there an extension or other mechanism for removing overlapping lines, particularly when the overlap doesn't correspond to segments with identical endpoints (such as with the green square's overlap)?
Maybe try Deepnest.
Deepnest - open source nesting software
Have a look here: https://inkscape.org/forums/cutplot/extensions-to-remove-duplicate-lines-and-nodes/