py/nodes/2D → 3D/extrude.node
raw| 1 | import fab |
| 2 | |
| 3 | title('Extrude') |
| 4 | |
| 5 | input('_x', float) |
| 6 | input('_y', float) |
| 7 | input('zmin', float, 0) |
| 8 | input('zmax', float, 1) |
| 9 | |
| 10 | input('shape', fab.types.Shape) |
| 11 | output('out', fab.shapes.extrude_z(shape, zmin, zmax)) |
| 12 | |
| 13 | # UI |
| 14 | sb.ui.wireframe([(_x, _y, zmin), (_x, _y, zmax)], color=sb.color.green) |
| 15 | sb.ui.point(_x, _y, zmin, color=sb.color.green) |
| 16 | sb.ui.point(_x, _y, zmax, color=sb.color.green) |
| 17 |