add modules per material

This commit is contained in:
Michael Sippel 2024-10-07 22:15:22 +02:00
parent bc663dabb6
commit e2611ab482
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -33,7 +33,7 @@ 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);
difference()
{
@ -109,35 +109,38 @@ for( y = [0:10] ) {
}
color([0.8,0.8,0.8])
difference() {
handle();
intersection() {
hexshape(100);
translate([ 0,0, 5 ])
cylinder(d=DIAM+100, h=LEN-2);
}
}
/*
color([0.2,0.47,0.8])
{
module part_TPU() {
color([0.8,0.8,0.8])
difference() {
translate([0,0,LEN+5])
cylinder(d=DIAM, h=5);
handle();
intersection() {
hexshape(100);
translate([ 0,0, 5 ])
cylinder(d=DIAM+100, h=LEN-2);
}
}
intersection() {
hexshape(100);
scale([0.95, 0.95, 1])
handle_shape();
translate([ 0,0, 5 ])
cylinder(d=DIAM+1000, h=LEN-2);
}
}
*/
module part_Glow() {
color([0.2,0.47,0.8])
{
difference() {
translate([0,0,LEN+5])
cylinder(d=DIAM, h=5);
handle();
}
}
intersection() {
hexshape(100);
scale([0.95, 0.95, 1])
handle_shape();
translate([ 0,0, 5 ])
cylinder(d=DIAM+1000, h=LEN-2);
}
}
part_Glow();