Skip to content

Commit

Permalink
Now using G0 between shapes, rather than G1. See vishpat#4
Browse files Browse the repository at this point in the history
  • Loading branch information
Harvie committed Jul 13, 2018
1 parent 27817b5 commit 759b481
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions svg2gcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 759b481

Please sign in to comment.