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

question: does svg2gcode support creating G02/G03 commands? #42

Closed monperrus closed 9 months ago

monperrus commented 9 months ago

quick question: does svg2gcode support creating G02/G03 commands for efficient curves?

thanks!

sameer commented 9 months ago

Hi, yes it does. It is still marked as experimental though since there's some room for improvement.

monperrus commented 9 months ago

ack thanks!

monperrus commented 9 months ago

I'm testing my SVG with curves but only get G01. what's the flag to get G02/G03 output?

thanks!

sameer commented 9 months ago

Hey, it should be --circular-interpolation true

monperrus commented 9 months ago

Thanks a lot, documented at https://github.com/sameer/svg2gcode/pull/44

I confirm that we get G02 commands with this benchmark file. FTR, there are still lots of G01 remaining (2k+).