| 1 | $fn=8; |
| 2 | |
| 3 | diameter = 30; |
| 4 | height = 20; |
| 5 | |
| 6 | difference() { |
| 7 | cylinder(h=height, d=7, $fn=64); |
| 8 | cylinder(h=height, d=4, $fn=64); |
| 9 | } |
| 10 | //cylinder(h=1 , d=10, $fn=64); |
| 11 | |
| 12 | difference() { |
| 13 | cylinder(h=height, d=diameter+6); |
| 14 | cylinder(h=height, d=diameter+0); |
| 15 | for (h = [0 : 1 : height-2]) { //SAME! |
| 16 | translate([0,0,1+h]) cylinder(h=0.2, d=diameter+1.6, center=true); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | difference() { |
| 21 | for (h = [0 : 1 : height-2]) { //SAME! |
| 22 | for (i = [0 : 4.5 : 180]) { |
| 23 | translate([0,0,1+h]) rotate([90,0,i+(h*3)]) cube([0.2,0.2,diameter+2], center=true); |
| 24 | } |
| 25 | } |
| 26 | cylinder(h=height, d=4, $fn=32); |
| 27 | } |