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

Fill shape #15

Open FPGA-KING opened 3 years ago

FPGA-KING commented 3 years ago

Hello I want to fill the shape.

Is it possible to draw filled shape?

For example If I draw star image as like example

I want the library to make automatically tool path for fill the star.

sameer commented 3 years ago

Hi there,

svg2gcode does not support fills at the moment (see FAQ).

What kind of fill are you looking to do? Definitely open to collaborating on this :slightly_smiling_face:

Thanks, Sameer

FPGA-KING commented 3 years ago

Raster path

https://www.youtube.com/watch?v=7OWYRHBsmgI

Inkscape support it

sameer commented 3 years ago

That seems like a reasonable use case. Is this something you'd be interested in making a pull request for?

FPGA-KING commented 3 years ago

That seems like a reasonable use case. Is this something you'd be interested in making a pull request for?

Yes, It is. I have idea for it. but the problem is that I can use CPP only.

I will first convert it to cpp code

sameer commented 3 years ago

Cool, this is very exciting. Happy to assist in the translation to Rust process.

khlebobul commented 1 year ago

Good afternoon, I just recently put together my painting robot. I had a problem generating Gcode because Inkscape doesn't work well with the latest version of MacOS. I found your project and drew my first drawings with it. Thank you very much! Please tell me, is there any way to set the parameters so that the plotter raises the Z-axis and does not leave connection lines?

sameer commented 1 year ago

the plotter raises the Z-axis and does not leave connection lines?

You can add in some g-code for that as the tool off sequence. image

Is this what you were looking for?