#beltbuilder.py
#Andreas Bastian 2015
#Simple script to generate crosshatching for finishing the TPU belt
#on the Lum 3D printer

from mecode import G
# up-to-date as of 11-16-15

g = G() #initialize
g = G(outfile='lumTests/lumBelt.gcode', print_lines=True) #destination for gcode file

g.feed(900) #feed in mm/min
beltWidth = 130 #belt width in mm
spacing = 5 #spacing in mm

#generate the cross-hatching:
for i in range(2,5000,2):
	g.abs_move(X=beltWidth, E=24*(i-1))
	g.abs_move(Z=spacing*0.2*(i-1))

	g.abs_move(X=0, E=24*i)
	g.abs_move(Z=spacing*(0.2*i))

