sameer / svg2gcode

Convert vector graphics to g-code for pen plotters, laser engravers, and other CNC machines
https://sameer.github.io/svg2gcode
MIT License
241 stars 48 forks source link

your code can produce single-line word? #49

Open ishangxue opened 7 months ago

ishangxue commented 7 months ago

Hello, thank you for sharing svg2gcode, now there is a problem I hope to get your help, hello

in SVG generated gcode, using a writer to write out the outline of the word,

轮廓线 obviously this is not the reality of life, what we need in life is a single-line font, I try to use other tools to deal with the single-line, but not ideal, your code can produce single-line word? hello

sameer commented 7 months ago

Hi @ishangxue, could you share the SVG file you are using? That way I can look into why the path is not smooth.

I wonder if this is related to #13

sameer commented 7 months ago

Ahh I didn't see you already shared the SVG, I am using a dark theme for github :joy:

Will take a look at this soon

sameer commented 7 months ago

I looked at your SVG more closely, this is a practical example of #13.