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 | ||
---|---|---|
208 | 208 | # |
209 | 209 | |
210 | 210 | if height is not None and height > 0: |
211 | last_z = height | |
211 | last_z = height - z_off | |
212 | 212 | else: |
213 | 213 | last_z = None |
214 | 214 | if height is not None and height < 0 and z_levels[-1] > height: |
215 | z_levels.append(height) | |
215 | z_levels.append(height - z_off) | |
216 | 216 | |
217 | 217 | for next_z in z_levels: |
218 | 218 | wires = shape.slice(Base.Vector(0, 0, 1), next_z + epsilon) |
Branches:
master