]> www.fi.muni.cz Git - things.git/blob - wing-tube-joint.scad
firewall for ITA plank wing
[things.git] / wing-tube-joint.scad
1 eps = 0.01;
2 infty = 200;
3
4 wall = 1.5;
5 thin_wall = 0.6;
6
7 fuse_tube_d = 8.0;
8 fuse_tube_l = 4;
9
10 slot_w = 5;
11
12 base_w = 60;
13 base_l = 25;
14
15 module body() {
16         hull() {
17 //              translate([-fuse_tube_d/2-wall, -fuse_tube_l/2, 0])
18 //                      cube([fuse_tube_d + 2*wall, fuse_tube_l, fuse_tube_d + 2*wall]);
19                 translate([0, fuse_tube_l/2, fuse_tube_d/2+wall])
20                 rotate([90, 0, 0])
21                         cylinder(r = fuse_tube_d/2+wall, h = fuse_tube_l);
22                 translate([-fuse_tube_d/2-wall, -base_l/2+wall/2, 0])
23                         cube([fuse_tube_d + 2*wall, base_l-wall, thin_wall]);
24         }
25         scale([1, base_l/base_w, 1])
26                 cylinder(r = base_w/2, h = thin_wall);
27 }
28
29 module holder() {
30         difference() {
31                 body();
32                 translate([0, infty/2, fuse_tube_d/2+wall])
33                 rotate([90, 0, 0])
34                         cylinder(r = fuse_tube_d/2, h = infty + 2*eps);
35                 translate([-slot_w/2, -infty/2, fuse_tube_d/2+wall])
36                         cube([slot_w, infty, fuse_tube_d/2+wall+eps]);
37         }
38 }
39
40 holder();