use module

This commit is contained in:
Filip Reimer 2020-01-21 11:44:49 +01:00
parent 4fb665bd7c
commit 6aba3789fe

View File

@ -1,9 +1,9 @@
Lidnodge=2;
D1W=26;
D1L=34.5;
D1H=8;
D1H=8+Lidnodge;
Wall=1.67;
Clearance=0.2;
Lidnodge=1;
GPIOW=2.8;
GPIOL=22;
//translate([-Wall,0,-Wall]){
@ -12,8 +12,10 @@ GPIOL=22;
// translate([0,0,0]) cube([D1W+Wall*4,D1L/1.2,D1H+Wall]);
// }
//}
translate([0,0,0]){
module drawCase()
{
translate([0,0,0]){
difference(){
cube([D1W+(Wall*2),D1L+(Wall*2),D1H+Wall-0.1]);
@ -35,6 +37,9 @@ translate([0,0,0]){
cube([Wall+0.1+1,4,2]);
}
}
}
}
module drawLid(){
//lid
translate([0,0,5]){
difference(){
@ -61,3 +66,12 @@ translate([0,0,0]){
}
}
}
minkowski(){
drawCase();
sphere(.2);
}
minkowski(){
drawLid();
sphere(.2);
}