Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instruct GCode parse to fill #24

Open
Milner99 opened this issue May 5, 2022 · 4 comments
Open

Instruct GCode parse to fill #24

Milner99 opened this issue May 5, 2022 · 4 comments

Comments

@Milner99
Copy link

Milner99 commented May 5, 2022

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

@PadLex
Copy link
Owner

PadLex commented May 5, 2022

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.

@Milner99
Copy link
Author

Milner99 commented May 6, 2022

Thank you replying.

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

@PadLex
Copy link
Owner

PadLex commented May 6, 2022

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)).

@johannesnoordanus
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants