sfc/slicer.py: when height is used as coordinate, correct it for the Z offset

This commit is contained in:
Werner Almesberger 2015-01-21 02:35:59 -03:00
parent 4cc43e1661
commit 84889441f3
1 changed files with 2 additions and 2 deletions

View File

@ -208,11 +208,11 @@ if height is not None:
#
if height is not None and height > 0:
last_z = height
last_z = height - z_off
else:
last_z = None
if height is not None and height < 0 and z_levels[-1] > height:
z_levels.append(height)
z_levels.append(height - z_off)
for next_z in z_levels:
wires = shape.slice(Base.Vector(0, 0, 1), next_z + epsilon)