Commit 96ffabc3 authored by sumpfralle's avatar sumpfralle

don't fail for zero-height processing areas


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@577 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 7c77e1e8
...@@ -246,6 +246,8 @@ def generate_toolpath(model, tool_settings=None, ...@@ -246,6 +246,8 @@ def generate_toolpath(model, tool_settings=None,
dz = step_down dz = step_down
else: else:
dz = maxz - minz dz = maxz - minz
if dz <= 0:
dz = 1
if direction == "x": if direction == "x":
dx, dy = 0, stepping dx, dy = 0, stepping
elif direction == "y": elif direction == "y":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment