2018-01-04 20:37:34 +00:00
|
|
|
HEIGHT=20;
|
|
|
|
DIAMETER=40;
|
|
|
|
WALL_THICKNESS=2;
|
|
|
|
HOLES=6;
|
|
|
|
PULL_HANDLE=true;
|
|
|
|
|
|
|
|
$fn=36;
|
|
|
|
PI=3.1415;
|
|
|
|
|
|
|
|
difference() {
|
|
|
|
cylinder(h=HEIGHT, d=DIAMETER);
|
|
|
|
translate([0, 0, WALL_THICKNESS])
|
|
|
|
cylinder(h=HEIGHT-WALL_THICKNESS, d=DIAMETER-WALL_THICKNESS*2);
|
|
|
|
|
|
|
|
// cutouts
|
|
|
|
for(i = [0: 360/HOLES: 360-HOLES]) {
|
|
|
|
rotate([0, 0, i])
|
|
|
|
translate([DIAMETER/4, 0])
|
|
|
|
cylinder(h=WALL_THICKNESS, d=(DIAMETER*PI/(HOLES*2)*3/4));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// pull handle if desired
|
2019-02-03 11:33:32 +00:00
|
|
|
if(PULL_HANDLE)
|
2018-01-04 20:37:34 +00:00
|
|
|
translate([0, 0, WALL_THICKNESS])
|
|
|
|
cylinder(h=HEIGHT-WALL_THICKNESS, d=DIAMETER/10);
|