1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-22 23:26:27 +02:00

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

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)