From 98a2d9a2aabc78a35df45d769d6fec166e8a1940 Mon Sep 17 00:00:00 2001 From: Jochen Vothknecht <jochen3120@gmail.com> Date: Mon, 28 Feb 2022 08:12:18 +0100 Subject: [PATCH] Final version ATM --- pcb/10W/TransportProtection.scad | 55 ++++++++++++++------------------ 1 file changed, 24 insertions(+), 31 deletions(-) diff --git a/pcb/10W/TransportProtection.scad b/pcb/10W/TransportProtection.scad index 7366744..760659f 100644 --- a/pcb/10W/TransportProtection.scad +++ b/pcb/10W/TransportProtection.scad @@ -17,7 +17,7 @@ pcb_sc_off = 5; // offset of screw holes from edge pcb_conn_w = 20; pcb_conn_h = 3; -box_str = 2; // Material strength +box_str = 3; // Material strength module pcb(w=pcb_w, h=pcb_h, r=pcb_r, off=pcb_off) { @@ -101,15 +101,17 @@ module clipReceptacle(w=10, h=3, d=2) { module minkowskiDemonstration() { - translate([-100, 0, 0]) { - color([10 /255, 230 /255, 20 /255]) { - cube([50, 20, 10]); - cylinder(d1=0, d2=10, h=5); - } - - translate([0, 0, 15]) minkowski() { - cube([50, 20, 10]); - cylinder(d1=0, d2=10, h=5); + translate([-70, -25, 0]) { + rotate([0, 0, 90]) { + color([10 /255, 230 /255, 20 /255]) { + cube([50, 20, 10]); + cylinder(d1=0, d2=10, h=5); + } + + translate([0, 0, 15]) minkowski() { + cube([50, 20, 10]); + cylinder(d1=0, d2=10, h=5); + } } } } @@ -119,21 +121,18 @@ 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); - } -} - - -module outerRingTop(w, h, r, off, _str) { minkowski() { - outerRing(w, h, r, off, _str); - cylinder(d1=0, d2=3, h=3, $fs=1.0, $fa=0.7); + difference() { + pcb3D(w, h, r, off=off); + pcb3D(w-s2, h-s2, r, off=off); + } + + cylinder(d1=0, d2=10, h=10, $fs=1.0, $fa=0.7); } } +TpOrChamfer = 3; module TransportProtection(w=pcb_w, h=pcb_h, r=pcb_r, height=pcb_t, off=pcb_off, _str=box_str) { @@ -142,28 +141,22 @@ module TransportProtection(w=pcb_w, h=pcb_h, r=pcb_r, height=pcb_t, off=pcb_off, difference() { body(w, h, r, _h, off, _str); - translate([0, 0, _h-2]) outerRingTop(w, h, r, off, _str); + translate([0, 0, _h-TpOrChamfer]) outerRing(w, h, r, off, _str); - translate([0, 0, 3]) rotate([0, 180, 0]) outerRingTop(w, h, r, _str+1, _str); + translate([0, 0, 5.5]) rotate([0, 180, 0]) outerRing(w, h, r, _str+1, _str); } } -/*translate([0, 0, 10]) minkowski() { - outerRing(); - cylinder(d1=0, d2=3, h=3, $fs=1.0, $fa=0.5); -}*/ - - if ($preview) { - // translate([0, 0,box_str]) PCBMockUp(); + minkowskiDemonstration(); - TransportProtection(); + translate([0, 0,box_str]) PCBMockUp(); - // minkowskiDemonstration(); + TransportProtection(); } else { -- GitLab