use module
This commit is contained in:
parent
4fb665bd7c
commit
6aba3789fe
20
esp8266.scad
20
esp8266.scad
@ -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);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user