diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-13 17:03:32 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-13 17:03:32 (GMT) |
commit | 96002da9cdfce46c80f256652281328587aa41c3 (patch) | |
tree | da22452811d601b565474c4692e4062a35112c0f /examples | |
parent | 7f944e1e25faa8d8c077ba78e4fd489b69270fb5 (diff) |
Clifford Wolf:
Added list() function
git-svn-id: http://svn.clifford.at/openscad/trunk@276 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example019.scad | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/example019.scad b/examples/example019.scad new file mode 100644 index 0000000..4ae9f70 --- /dev/null +++ b/examples/example019.scad @@ -0,0 +1,14 @@ + +function get_cylinder_h(p) = list(p, [ + [ -200, 5 ], + [ -50, 20 ], + [ -20, 18 ], + [ +80, 25 ], + [ +150, 2 ] + ]); + +for (i = [-100:5:+100]) { + // echo(i, get_cylinder_h(i)); + translate([ i, 0, -30 ]) cylinder(r1 = 6, r2 = 2, h = get_cylinder_h(i)*3); +} + |