]> www.fi.muni.cz Git - things.git/blob - croozer-joint.scad
Holder for two LED strips with Al base
[things.git] / croozer-joint.scad
1 // joint for Croozer Cargo
2
3 infty = 100;
4 eps = 0.01;
5
6 side_space = 1.5;
7 wall = 2;
8 corner_d = 3;
9
10 inner_w = 16 + 0.6;
11 outer_w = 22.5 - 0.3;
12 body_h = 45;
13
14 hole_d = 7*1.1;
15 hole_off = 29;
16
17 module body() {
18         hull() for (angle = [45:90:360]) rotate([0, 0, angle])
19                 translate([outer_w/sqrt(2)-corner_d*sqrt(2)/2, 0, 0])
20                         cylinder(r=corner_d/2, h = body_h, $fn = 8);
21         hull() for (angle = [45:90:360]) rotate([0, 0, angle])
22                 translate([(outer_w+2*wall)/sqrt(2)-corner_d*sqrt(2)/2, 0, 0])
23                         cylinder(r=corner_d/2, h = side_space, $fn = 8);
24 }
25
26 difference() {
27         body();
28         translate([-inner_w/2, -inner_w/2, -eps])
29                 cube([inner_w, inner_w, body_h + 2*eps]);
30         translate([0, infty/2, hole_off])
31         rotate([90, 0, 0])
32                 cylinder(r = hole_d/2, h=infty, $fn = 6);
33 }