]> www.fi.muni.cz Git - things.git/blobdiff - din-quido.scad
switch holder.scad
[things.git] / din-quido.scad
index bf914d8af58f1ec79e9901270533274e6db03067..5ff7b1ec63a1f1d31f1278ce6e7c15beddd2d2fc 100644 (file)
@@ -2,8 +2,9 @@ infty = 300;
 eps = 0.1;
 
 wall = 3;
+stem_wall = 4.5;
 
-papouch_h = 123.2 + 0.5;
+papouch_h = 123.2 + 0.7;
 w = 20;
 
 module din(height) {
@@ -52,15 +53,18 @@ module pcb_end(comp_h, pcb_h, pcb_border, height) {
 }
 module papouch(len, height, clip) {
        // back
-       translate([-len/2-wall, -wall, 0])
-               cube([len+2*wall, wall+eps, height]);
-       for (x = [-1, 1]) scale([x, 1, 1])
+       translate([-len/2-wall, -stem_wall, 0])
+               cube([len+2*wall, stem_wall+eps, height]);
+       for (x = [-1, 1]) scale([x, 1, 1]) {
                translate([-len/2, 0, 0])
                        pcb_end(3, 1.6, 5, height);
+               translate([-len/6, 0, 0])
+                       cube([wall, wall, height]);
+       }
 };
 
        
 rotate([0, 0, 180]) din(w);
-papouch(papouch_h, w, 5.5);
+translate([0, stem_wall-wall, 0]) papouch(papouch_h, w, 5.5);