Commit | Line | Data |
---|---|---|
9b78022c TM |
1 | $fn=8; |
2 | ||
3 | diameter = 30; | |
4 | height = 20; | |
5 | ||
6 | difference() { | |
757098d6 TM |
7 | cylinder(h=height, d=7, $fn=64); |
8 | cylinder(h=height, d=4, $fn=64); | |
9b78022c | 9 | } |
757098d6 | 10 | //cylinder(h=1 , d=10, $fn=64); |
9b78022c TM |
11 | |
12 | difference() { | |
757098d6 | 13 | cylinder(h=height, d=diameter+6); |
9b78022c | 14 | cylinder(h=height, d=diameter+0); |
757098d6 TM |
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 | } | |
9b78022c TM |
18 | } |
19 | ||
20 | difference() { | |
757098d6 TM |
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); | |
9b78022c TM |
24 | } |
25 | } | |
26 | cylinder(h=height, d=4, $fn=32); | |
27 | } |