example019.scad 260 B

1234567891011121314
  1. function get_cylinder_h(p) = lookup(p, [
  2. [ -200, 5 ],
  3. [ -50, 20 ],
  4. [ -20, 18 ],
  5. [ +80, 25 ],
  6. [ +150, 2 ]
  7. ]);
  8. for (i = [-100:5:+100]) {
  9. // echo(i, get_cylinder_h(i));
  10. translate([ i, 0, -30 ]) cylinder(r1 = 6, r2 = 2, h = get_cylinder_h(i)*3);
  11. }