Commit aef44e26 authored by sumpfralle's avatar sumpfralle

fixed z steps for engrave cutter


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@393 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 06bf21ac
...@@ -49,7 +49,7 @@ class EngraveCutter: ...@@ -49,7 +49,7 @@ class EngraveCutter:
num_of_layers = 1 + int(math.ceil(abs(maxz - minz) / dz)) num_of_layers = 1 + int(math.ceil(abs(maxz - minz) / dz))
if num_of_layers > 1: if num_of_layers > 1:
z_step = abs(maxz - minz) / (num_of_layers - 1) z_step = abs(maxz - minz) / (num_of_layers - 1)
z_steps = [(maxz - i * dz) for i in range(num_of_layers)] z_steps = [(maxz - i * z_step) for i in range(num_of_layers)]
# the top layer is treated as the surface - thus it does not require engraving # the top layer is treated as the surface - thus it does not require engraving
z_steps = z_steps[1:] z_steps = z_steps[1:]
else: else:
......
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