From 334d38c3d65188209137d4d238c7107b8b2db72b Mon Sep 17 00:00:00 2001 From: Jochen Vothknecht <jochen3120@gmail.com> Date: Tue, 1 Mar 2022 08:24:35 +0100 Subject: [PATCH] Building better clip --- pcb/10W/TransportProtection.scad | 46 +++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/pcb/10W/TransportProtection.scad b/pcb/10W/TransportProtection.scad index 3f70865..4a38fa0 100644 --- a/pcb/10W/TransportProtection.scad +++ b/pcb/10W/TransportProtection.scad @@ -91,14 +91,48 @@ module clipReceptacle(w=10, h=3, d=2) { hd = h - d; // TODO: calculate from angle!!! translate([-d/2, w/2, 0]) rotate([90, 0, 0]) linear_extrude(w) polygon([ - [0, 0], + [0, 0], [d, -_y], - [d, hd], - [0, h] + [d, hd], + [0, h] ]); } -// clipReceptacle(); + + +module triangularClipReceptacle(w=20, h=3, d=3) { + + h2 = h / 2; + + translate([0, w/2, 0]) rotate([90, 0, 0]) linear_extrude(w) polygon([ + [0, -h2], + [0, h2], + [d, 0] + ]); + +} + +module triangularClip(w=20, h=3, d=3, length=10, _str=3) { + + h2 = h / 2; + l = length; + + _lx = 0.25; // TODO: calculate from angle!!!! + _x = l * _lx; + _hlx = h2 * _lx; + + translate([_str - 0.01, 0, h2]) triangularClipReceptacle(w, h, d); + + translate([0, w/2, 0]) rotate([90, 0, 0]) linear_extrude(w) polygon([ + [ 0, -l], + [ -_x, h + _hlx], + [_str, h], + [_str, 0], + [_str, -l], + ]); + +} +triangularClip(); module minkowskiDemonstration() { @@ -151,7 +185,7 @@ module TransportProtection(w=pcb_w, h=pcb_h, r=pcb_r, height=pcb_t, off=pcb_off, } -if ($preview) { +/*if ($preview) { minkowskiDemonstration(); @@ -164,5 +198,5 @@ if ($preview) { TransportProtection(); } - +*/ -- GitLab