From c35f673912c0bbe77928d9877d220b875beff4f3 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 31 Jul 2018 15:03:17 +0200 Subject: [PATCH] add lid design --- cad/case2.scad | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/cad/case2.scad b/cad/case2.scad index e19f3b5..ef8fbc8 100644 --- a/cad/case2.scad +++ b/cad/case2.scad @@ -73,4 +73,32 @@ difference() { translate([+20,0,0]) cylinder(r=5.0/2+tolerance,h=3*wall); // led2 } //#translate([32.4,24.2,57/2-wall]) cube([46,30,57-wall],center=true); +} + +module lid() { + z=8.0; + translate([100+corner,0,-wall]) + difference() { + minkowski() { + cube([width-2*corner-2*(wall+tolerance),length-2*corner-2*(wall+tolerance),z]); + cylinder(r=corner+wall,h=0.1); + } + difference() { + translate([0,0,wall]) minkowski() { + cube([width-2*corner-2*(wall+tolerance),length-2*corner-2*(wall+tolerance),z+2]); + cylinder(r=corner,h=0.1); + } + translate([-corner+2,-corner+2,0]) cylinder(r=corner,h=z); // pi_z+wall+pi_thick + translate([width-corner-2,-corner+2,0]) cylinder(r=corner,h=z); // z-8 + translate([-corner+2,length-corner-2,0]) cylinder(r=corner,h=z); // bottom_thick+53 + translate([width-corner-2,length-corner-2,0]) cylinder(r=corner,h=z); + } + + translate([-wall-tolerance,-wall-tolerance,0]) { + translate([-corner/2,-corner/2,z-8]) {cylinder(r=3.0/2,h=8+0.2); cylinder(r=6/2,h=3);} + translate([width-1.5*corner,-corner/2,z-8]) {cylinder(r=3.0/2,h=8+0.2); cylinder(r=6/2,h=3);} + translate([-corner/2,length-1.5*corner,z-8]) {cylinder(r=3.0/2,h=8+0.2); cylinder(r=6/2,h=3);} + translate([width-1.5*corner,length-1.5*corner,z-8]) {cylinder(r=3.0/2,h=8+0.2); cylinder(r=6/2,h=3);} + } + } } \ No newline at end of file