diff --git a/pcb/10W/TransportProtection.scad b/pcb/10W/TransportProtection.scad index 9895101943121a179e9c29841399e533a54a203b..86f36450ff8491625c66911129d90554a9c5f3b6 100644 --- a/pcb/10W/TransportProtection.scad +++ b/pcb/10W/TransportProtection.scad @@ -46,18 +46,31 @@ module pcb3D(wi, hi, ri, height=1.6, off=pcb_off) { module body(wi, hi, ri, height=pcb_t, off=pcb_off, _str=box_str) { - outer_w = wi; + + // clipDisplacementX + clDsX = wi/2 + off + _str; difference() { pcb3D(wi, hi, ri, height=height, off=_str); translate([0, 0, _str]) pcb3D(wi, hi, ri, height=height, off=off); - for (tx=[-outer_w/2]) translate([tx, 0, height/2]) rotate([0, 0, 0]) clipReceptacle(); + //for (tx=[-clDsX, clDsX]) translate([tx, 0, height/2]) rotate([0, 0, 0]) clipReceptacle(); } } +module outerRing(w=pcb_w, h=pcb_h, r=pcb_r, off=pcb_off, _str=box_str) { + + s2 = _str/2; + + difference() { + pcb3D(w, h, r, off=off); + pcb3D(w-s2, h-s2, r, off=off); + } +} + +translate([0, 0, 10]) outerRing(); module PCBMockUp(w=pcb_w, h=pcb_h, r=pcb_r, off_xy=pcb_sc_off) {