Date:2015-01-21 06:35:59 (9 years 2 months ago)
Author:Werner Almesberger
Commit:84889441f3c48e1d8cd304e59ae430936196dc14
Message:sfc/slicer.py: when height is used as coordinate, correct it for the Z offset

Files: sfc/slicer.py (1 diff)

Change Details

sfc/slicer.py
208208#
209209
210210if height is not None and height > 0:
211    last_z = height
211    last_z = height - z_off
212212else:
213213    last_z = None
214214if height is not None and height < 0 and z_levels[-1] > height:
215    z_levels.append(height)
215    z_levels.append(height - z_off)
216216
217217for next_z in z_levels:
218218    wires = shape.slice(Base.Vector(0, 0, 1), next_z + epsilon)

Archive Download the corresponding diff file

Branches:
master



interactive