Skip to content

Commit

Permalink
removed Z from all the flat moves in actp_funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
danheeks committed Feb 1, 2009
1 parent 07935a5 commit ee193a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion actp_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ def cut(stl_file):
nlinkpaths = actp.getnumlinkpths(path)
z = actp.getz(path)
start_pos = 0
FirstZDone = False
for brk in range(0, nbreaks):
brkpos = actp.getbreak(path, brk)
for point in range(start_pos, brkpos):
x, y = actp.getpoint(path, point)
feed(x, y, z)
if FirstZDone == False:
feed(x, y, z)
FirstZDone = True
else:
feed(x, y)
start_pos = brkpos
nlinkpoints = actp.getnumlinkpoints(path, brk)
for linkpoint in range(0, nlinkpoints):
Expand Down

0 comments on commit ee193a0

Please sign in to comment.