Debian Codegraph @

py/nodes/3D → 2D/slice_xz.node

raw
1 # Neil Gershenfeld 7/12/15
2
3 import fab
4 from fab.types import Shape
5
6 title('Slice (XZ)')
7
8 def slice_xz(shape,y):
9 return Shape(('mXf%gY' % y) + shape.math,
10 shape.bounds.xmin,shape.bounds.zmin,
11 shape.bounds.xmax,shape.bounds.zmax)
12
13 input('shape',fab.types.Shape)
14 input('y',float,0)
15
16 output('slice',slice_xz(shape,y))
17