Compare commits

...

3 commits

View file

@ -33,44 +33,55 @@ module cap() {
}
module handle_shape(l=0) {
cylinder(h=l, d=DIAM+2*3, $fn=64);
//cylinder(h=l, d=DIAM+2*3, $fn=64);
hull() {
translate([0,0,LEN-50])
cylinder(h=30, d=DIAM+2*3+5, $fn=64);
difference()
{
hull() {
translate([0,0,LEN-50])
cylinder(h=30, d=DIAM+2*3+5, $fn=64);
translate([0,0, l])
cylinder(h=LEN+3+8-l, d=DIAM+2*3, $fn=64);
translate([0,0, l])
cylinder(h=LEN+3+8-l, d=DIAM+2*3, $fn=64);
translate([30,10,LEN-40])
cylinder(d=8, h=40, $fn=64);
}
translate([30,10,LEN-40])
cylinder(d=8, h=40, $fn=64);
}
translate([86,0,15])
rotate([80, -15, 25])
cylinder(h=200, d=135, $fn=128, center=true);
}
}
module ripple_stencil() {
translate([0,0,-1]) {
for( z = [0:10] ) {
translate([0,0,z*(LEN-5)/10]) {
hull() {
cylinder(h=0.1, d=DIAM+1, $fn=64);
translate([0,0,(LEN-5)/10])
cylinder(h=0.1, d=DIAM-1, $fn=64);
}
}
}
}
translate([0,0,LEN+3+5])
difference() {
cylinder(h=10, d=DIAM-3, $fn=64);
translate([0,0,-8])
cylinder(h=10, d=DIAM-8, $fn=64);
}
}
module handle() {
difference() {
difference()
{
handle_shape();
translate([0,0,-1]) {
for( z = [0:10] ) {
translate([0,0,z*(LEN-5)/10]) {
hull() {
cylinder(h=0.1, d=DIAM+1, $fn=64);
translate([0,0,(LEN-5)/10])
cylinder(h=0.1, d=DIAM-1, $fn=64);
}
}
}
}
translate([0,0,LEN+3+5])
difference() {
cylinder(h=10, d=DIAM-3, $fn=64);
translate([0,0,-8])
cylinder(h=10, d=DIAM-8, $fn=64);
}
ripple_stencil();
}
}
@ -81,17 +92,17 @@ module hexshape( h0=10 ) {
translate([0,0,0])
rotate([90,0,0])
for( x = [0:5] ) {
for( y = [0:12] ) {
for( y = [0:10] ) {
//translate([0, 0.8*(y*y) + 5 * y + 10,0])
s0 = 0.5 + (y/24);
s = s0*s0;
s0 = 0.6 + (y/24);
s = (s0*s0);
rotate([0, 80-(x*60) * s ,0])
translate([0,(x%2)*7+y*10, DIAM/2+0.5])
translate([0,(x%2)*7+y*13, DIAM/2+0.5])
difference() {
cylinder(h=h0, d=14*s, $fn=6);
translate([0,0,-1])
cylinder(h=h0+3, d=10*s, $fn=6);
cylinder(h=h0+3, d=8*s, $fn=6);
}
}
}