From 759b481e73c47015eaf1bacfbeddc96b66ae79ad Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Sat, 14 Jul 2018 01:38:37 +0200 Subject: [PATCH] Now using G0 between shapes, rather than G1. See #4 --- svg2gcode.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/svg2gcode.py b/svg2gcode.py index 45e8b22..d4cba75 100755 --- a/svg2gcode.py +++ b/svg2gcode.py @@ -47,9 +47,11 @@ def generate_gcode(): if d: print shape_preamble p = point_generator(d, m, smoothness) + feed=0 for x,y in p: - if x > 0 and x < bed_max_x and y > 0 and y < bed_max_y: - print "G1 X%0.1f Y%0.1f" % (scale_x*x, scale_y*y) + if x > 0 and x < bed_max_x and y > 0 and y < bed_max_y: + print "G%d X%0.1f Y%0.1f" % (feed, scale_x*x, scale_y*y) + feed=1 print shape_postamble print postamble