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) { module handle_shape(l=0) {
//cylinder(h=l, d=DIAM+2*3, $fn=64); cylinder(h=l, d=DIAM+2*3, $fn=64);
difference() difference()
{ {
@ -109,8 +109,9 @@ for( y = [0:10] ) {
} }
color([0.8,0.8,0.8]) module part_TPU() {
difference() { color([0.8,0.8,0.8])
difference() {
handle(); handle();
intersection() { intersection() {
@ -118,18 +119,20 @@ difference() {
translate([ 0,0, 5 ]) translate([ 0,0, 5 ])
cylinder(d=DIAM+100, h=LEN-2); cylinder(d=DIAM+100, h=LEN-2);
} }
}
} }
module part_Glow() {
/* color([0.2,0.47,0.8])
color([0.2,0.47,0.8]) {
{
difference() { difference() {
translate([0,0,LEN+5]) translate([0,0,LEN+5])
cylinder(d=DIAM, h=5); cylinder(d=DIAM, h=5);
handle(); handle();
} }
intersection() { }
intersection() {
hexshape(100); hexshape(100);
scale([0.95, 0.95, 1]) scale([0.95, 0.95, 1])
@ -137,7 +140,7 @@ intersection() {
translate([ 0,0, 5 ]) translate([ 0,0, 5 ])
cylinder(d=DIAM+1000, h=LEN-2); cylinder(d=DIAM+1000, h=LEN-2);
} }
} }
*/ part_Glow();