From ad502cc6d90bc37dacf3b5a3bb1f8345e0cf6539 Mon Sep 17 00:00:00 2001 From: Jochen Vothknecht <jochen3120@gmail.com> Date: Sat, 26 Feb 2022 17:05:48 +0100 Subject: [PATCH] Abandoning the clip --- pcb/10W/TransportProtection.scad | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pcb/10W/TransportProtection.scad b/pcb/10W/TransportProtection.scad index 9895101..86f3645 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) { -- GitLab