Svg exports have extra lines

puzzle_support.lbrn2 (87.1 KB)
puzzle_support


I’m having issues with svg export. There are extra unintended lines when I open an exported svg in another program (default I’m using is Windows Edge Browser but shouldn’t matter what program you use).

I found I can open up the file in a text editor and do a search replace for z" (z then double quote) with just a " double quote (removes all of the z’s at the end of the path statements) and only then does the exported svg look how it was exported from Lightburn.

Attached is

  • my lightburn lbrn2 project
  • exported svg exactly as exported
  • image highlighting the extra lines in red.
  • save image from preview showing expected output results

-Michael

I can reproduce the problem but the added lines are in a different location on mine
2022-01-15_09-50-45 - snagit lines added to jigsaw puzzle during export

Win 10,
1.0.06

Yours is just vertically flipped, likely because you opened their LightBurn file with a different job origin. I’m able to reproduce this and looking into it now.

1 Like

This is fixed for the next release. The way a couple of the pieces are connected was confusing the exporter. Like this one:

The green dot at the top of the piece is where the shape starts. The lines to the left are connected together, and then the line breaks, it jumps to the bottom and continues counter-clockwise from there, until it gets back to the top.

The previous code in my exporter just said “is the first vertex in the shape the same as the last one?” and if so, emitted the ‘z’ at the end to tell the importer it’s a closed shape, but this isn’t correct.

Now, every time there’s a break in the shape, I reset the value of “first” to be where the next line starts, and it works properly with your file now. This will be in the next release.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.