From 6aba3789fe70fe084b0162cd5901f65da20185cb Mon Sep 17 00:00:00 2001 From: Filip Reimer Date: Tue, 21 Jan 2020 11:44:49 +0100 Subject: [PATCH] use module --- esp8266.scad | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/esp8266.scad b/esp8266.scad index 340be98..7b0370b 100644 --- a/esp8266.scad +++ b/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(){ @@ -60,4 +65,13 @@ translate([0,0,0]){ } } } + } + minkowski(){ + drawCase(); + sphere(.2); + } + + minkowski(){ + drawLid(); + sphere(.2); } \ No newline at end of file