X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=din-quido.scad;h=5ff7b1ec63a1f1d31f1278ce6e7c15beddd2d2fc;hb=HEAD;hp=bf914d8af58f1ec79e9901270533274e6db03067;hpb=665d8c9fbe186284180f266a768b2f552c23bfca;p=things.git diff --git a/din-quido.scad b/din-quido.scad index bf914d8..5ff7b1e 100644 --- a/din-quido.scad +++ b/din-quido.scad @@ -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);