Boolean Union not working as Expected on Custom SVG

I am trying to achieve what I did on the right side, but using the Pattern on the left Side I made myself in InkScape.

Before using Union:


After:

Is there something I am missing? Perhaps an Issue with SVG´s that have overlapping lines? Is there any other way to easily achieve what I am trying to do?

Hi Croys

Any chance you could upload the non booleaned LBRN so we can take alook?
And or the original svgs

That should be the required files. Edit: I used the upload feature, but it has not worked properly. I can import my SVG just fine, and the Laser Preview shows that every single Line is recognized in Lightburn.
LBRN:
booltest.lbrn2 (44,6 KB)
Left SVG:
bricktest
Right SVG:
brick-wall-wall

I believe the issue you having is the SVG is a collection of rectangles, so you will get the same behavior if you ungroup the “wall” pattern, select it all and do a “weld”

image
The resulting shape is this, on Ungroup, Weld

Now not 100% sure on why this is.
HOwever heres an interesting excercise

Select your shape, > convert to bitmap 500DPI
Then convert back to the path

Once you do that boulean works.

@JohnJohn @Rick might be able to give a technical insight on the why

As a 2nd thought. Probably “welding” the pattern could be easier on your vector pre work in InkSpace?
Seems to me The boulean function gets a bit confused - or maybe its doing what we are asking it to do.
Specially if boolean ignores “group” as a whole unit and sees each individual small rectangle as a unit within the BIG shape.

Thank you for the quick response, but unfortunately I wasn´t able to reproduce your steps to create my Boolean:

1.Select the Wall Pattern
2.Convert to Bitmap 500dpi
3.Converting back to path is now greyed out

I am very unexperienced with Inkscape/Vector Files, I usually do my Sketches in FreeCad, which is why I just created Tile Clones of Rectangles which I thought would be a quicker way to get my desired Pattern.

See if you can follow these:

Right click shape - > convert to Bitmap
500 DPI might not be necessary but is what i did

Now you have a new Image, the vector disapeared
Select it → right click → Trace image ( i think i miss guided you earlier with Convert to path)
Treshold 250, cutoff 0

Now you have a Image and a vector
Delete image and use vector for boulean

There is a downside though, as Lightburn cannot centerline trace, you have 2 lines. So would be ideal to do this on InkSpace
This is a clunky workaround
image

Maybe this little snippet of inkspace might help
Where you can do a boolean in a way inside inkspace and just bring out a clear SVG

Thank you for pointing me in the right direction, I wasn´t even sure what to look for to find my answer.


Following your Steps has worked perfectly, but as you´ve said, its probably way easier to make a proper SVG in Inkscape, and it won´t have double lines.

1 Like

There has to be a better workflow, won’t be of much help though on ink space!

But at least you are in the right path!

After manually creating rectangles and combining them, and not beeing able to ungroup them anymore In Inkscape, Lightburn still seems to recognize them as Rectangles and can ungroup them, and using your workaround just seems to create Double Lines again.

Before:
beforecombine
After:


Files:
walltest
booltest.lbrn2 (7,6 KB)

I think the problem is the way you do the vector
The lines here are duplicated and i think thats whats throwing the boolean assistant off
image

I recreated the pattern using lines instead of rectangles (Edit: While not overlapping the lines in any way), combined them, now I am completly unable to use the boolean tool when selecting the circle and the pattern. Is there a more reliable way to achieve what I am trying to do? Is Inkscape the right tool for this?
wallLines
Also tried your workaround, sadly there are also gaps.
gap

Edit 2: Also tried creating the Pattern using Lines in Lightburn itself, the boolean option is greyed out again.
booltestlines.lbrn2 (7,0 KB)

You have to select your rectangles and convert them to paths. Then go into node editing, and trim out the lines inside the ellipse.

Would you mind elaborating further, or reproducing it and sending a sceenshot? I am unable to convert it to Path in Lightburn, or are you talking about Inkscape?


rectpath.lbrn2 (4,3 KB)

Try using “Cut Shapes” instead.

Duplicate (CTRL+D) the circle, then deselect it, then select the brick wall, select the duplicate circle again, then go to “Tools” > “Cut Shapes” (Alt+Shift+C), and, lastly, delete the inner portion.

2024-03-16_10-16-30

1 Like

Thank you so much, this is exactly what I was looking for, but there apears to be overlap after using the cut tool, is this just visual or will it actually overlap when I engrave the shape?
overlap

You’re welcome!

There will be an actual overlap when you engrave this if you leave those lines as they are (sometimes this occurs due to the tolerances LightBurn works with for the Boolean operations, Cut Shapes, and other tools). They are so small that they might not be visually apparent when you actually score these lines, so it might be fine just to leave them alone.

To get rid of the overlap, you can also use the “Edit Nodes” tool to trim them back to where they intersect with the circle. Make sure they’re ungrouped, then select them, hover over the overhanging parts of the lines, and press “T” to “Trim” them.

Because of the way this brick pattern was made, you’ll need to do that twice for places where there are two overlapping lines.

You should also make sure you have “Remove Overlapping Lines” enabled in your Optimization Settings, so those lines aren’t output twice to your laser.

2024-03-16_10-38-45

1 Like

Allright, thank you for your Time, this should solve my Issue.

1 Like

How did you get that Boolean Assistant window to pop up? Is it available in the GRBL LB?