example005.scad 446 B

1234567891011121314151617181920
  1. module example005()
  2. {
  3. translate([0, 0, -120]) {
  4. difference() {
  5. cylinder(h = 50, r = 100);
  6. translate([0, 0, 10]) cylinder(h = 50, r = 80);
  7. translate([100, 0, 35]) cube(50, center = true);
  8. }
  9. for (i = [0:5]) {
  10. echo(360*i/6, sin(360*i/6)*80, cos(360*i/6)*80);
  11. translate([sin(360*i/6)*80, cos(360*i/6)*80, 0 ])
  12. cylinder(h = 200, r=10);
  13. }
  14. translate([0, 0, 200])
  15. cylinder(h = 80, r1 = 120, r2 = 0);
  16. }
  17. }
  18. example005();