From ba7c232ea524f4c96eef8459f0333cd78d47d51d Mon Sep 17 00:00:00 2001 From: Jochen Vothknecht <jochen3120@gmail.com> Date: Tue, 1 Mar 2022 01:18:45 +0100 Subject: [PATCH] Use moar height --- pcb/10W/TransportProtection.scad | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pcb/10W/TransportProtection.scad b/pcb/10W/TransportProtection.scad index 760659f..3f70865 100644 --- a/pcb/10W/TransportProtection.scad +++ b/pcb/10W/TransportProtection.scad @@ -8,16 +8,17 @@ $fa = 1.0; -pcb_w = 40.5; -pcb_h = 67.5; -pcb_r = 5; // edge radius -pcb_off = 0.4; -pcb_t = 5; // thickness including LED and inductor -pcb_sc_off = 5; // offset of screw holes from edge -pcb_conn_w = 20; -pcb_conn_h = 3; +pcb_w = 40.5; +pcb_h = 67.5; +pcb_r = 5; // edge radius +pcb_off = 0.4; +pcb_t = 5 +1; // thickness including LED and inductor +pcb_sc_off = 5; // offset of screw holes from edge +pcb_conn_w = 20; +pcb_conn_h = 3; -box_str = 3; // Material strength +box_str = 3; // Material strength +box_h = pcb_t + 2; module pcb(w=pcb_w, h=pcb_h, r=pcb_r, off=pcb_off) { @@ -134,9 +135,9 @@ module outerRing(w=pcb_w, h=pcb_h, r=pcb_r, off=pcb_off, _str=box_str) { TpOrChamfer = 3; -module TransportProtection(w=pcb_w, h=pcb_h, r=pcb_r, height=pcb_t, off=pcb_off, _str=box_str) { +module TransportProtection(w=pcb_w, h=pcb_h, r=pcb_r, height=pcb_t, off=pcb_off, _str=box_str, _boxH=box_h) { - _h = height + 2; + _h = _boxH + 2; difference() { body(w, h, r, _h, off, _str); -- GitLab