refactor ripple_stencil into separate module

This commit is contained in:
Michael Sippel 2024-10-07 21:25:35 +02:00
parent 9af9463dbf
commit d150fea651
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -47,30 +47,34 @@ module handle_shape(l=0) {
} }
} }
module handle() { module ripple_stencil() {
difference() { translate([0,0,-1]) {
handle_shape(); for( z = [0:10] ) {
translate([0,0,z*(LEN-5)/10]) {
hull() {
cylinder(h=0.1, d=DIAM+1, $fn=64);
translate([0,0,-1]) { translate([0,0,(LEN-5)/10])
for( z = [0:10] ) { cylinder(h=0.1, d=DIAM-1, $fn=64);
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]) translate([0,0,LEN+3+5])
difference() { difference() {
cylinder(h=10, d=DIAM-3, $fn=64); cylinder(h=10, d=DIAM-3, $fn=64);
translate([0,0,-8]) translate([0,0,-8])
cylinder(h=10, d=DIAM-8, $fn=64); cylinder(h=10, d=DIAM-8, $fn=64);
} }
}
module handle() {
difference()
{
handle_shape();
ripple_stencil();
} }
} }