SvgToGcode icon indicating copy to clipboard operation
SvgToGcode copied to clipboard

Instruct GCode parse to fill

Open Milner99 opened this issue 3 years ago • 4 comments

Hi,

Great convertor it's so close to perfect for what I need. Wondering if there is a setting that I can choose to rather than outline a shape in SVG > GCode but to infill/pocket.

I'm hoping so and I just haven't configured it properly. Please can you review and advise if this is possible with SvgToGcode Repositiory.

Images attached, outline is from this repo - filled in tool path the other convertor which I can't use. SVG is the source. 22 Other Convertor Screenshot 2022-05-06 at 00 26 31 This repo convertor Screenshot 2022-05-06 at 00 27 38

Thank you so much Chris

Milner99 avatar May 05 '22 23:05 Milner99

As is the library only converts SVG paths to gcode paths. However, after converting the SVG paths to geometry, you could make a loop which copies and shrinks your objects before compiling it to gcode.

PadLex avatar May 05 '22 23:05 PadLex

Thank you replying.

Not sure I know how to do that. Would this be something you could help me with?

Milner99 avatar May 06 '22 08:05 Milner99

If you'd rather not code you might want to try the inkscape extension which uses this library. If you don't need to repeat the procedure too often you could copy and resize the path by hand.

If you don't mind coding then I'd play around with curves (between curves = parse_file("drawing.svg") and gcode_compiler.append_curves(curves)).

PadLex avatar May 06 '22 09:05 PadLex

Hi, filling stroke width etc can be achieved by rendering the svg to an image file (jpeg, png ...) and subsequently convert the image to gcode. Repeat this (in a loop) if you want to burn deep (or even through) material.

johannesnoordanus avatar Nov 20 '22 14:11 johannesnoordanus