Skip to content
Snippets Groups Projects
Commit 334d38c3 authored by fxk8y's avatar fxk8y :spider:
Browse files

Building better clip

parent 2bc7de9e
No related branches found
No related tags found
No related merge requests found
...@@ -91,14 +91,48 @@ module clipReceptacle(w=10, h=3, d=2) { ...@@ -91,14 +91,48 @@ module clipReceptacle(w=10, h=3, d=2) {
hd = h - d; // TODO: calculate from angle!!! hd = h - d; // TODO: calculate from angle!!!
translate([-d/2, w/2, 0]) rotate([90, 0, 0]) linear_extrude(w) polygon([ translate([-d/2, w/2, 0]) rotate([90, 0, 0]) linear_extrude(w) polygon([
[0, 0], [0, 0],
[d, -_y], [d, -_y],
[d, hd], [d, hd],
[0, h] [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() { module minkowskiDemonstration() {
...@@ -151,7 +185,7 @@ module TransportProtection(w=pcb_w, h=pcb_h, r=pcb_r, height=pcb_t, off=pcb_off, ...@@ -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(); minkowskiDemonstration();
...@@ -164,5 +198,5 @@ if ($preview) { ...@@ -164,5 +198,5 @@ if ($preview) {
TransportProtection(); TransportProtection();
} }
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment