]> www.fi.muni.cz Git - things.git/blob - wing-tube-clip-front.scad
4367e743b0e0f5069aa5f6a3df34992a9b530559
[things.git] / wing-tube-clip-front.scad
1 eps = 0.01;
2 infty = 200;
3
4 wall = 1.5;
5
6 tube_d = 8.0 + 0.5;
7 tube2_d = 6.0 + 0.5;
8 tube2_xoff = tube_d/2 + tube2_d/2 + 2.8 + 2;
9
10 clip_w = tube2_d + 2*wall;
11
12 slot_w = 3;
13 slot_angle = 180;
14
15 wing_slot = 0.75*tube2_d;
16 wing_top_wall = 2.5;
17
18 difference() {
19         hull() {
20                 // fuse cylinder
21                 cylinder(r = tube_d/2 + wall, h = clip_w);
22                 // wing cylinder
23                 translate([tube2_xoff - tube2_d/2-wall, -tube_d/2 -wall, 0])
24                 cube([tube2_d + wall + wing_top_wall, tube_d + 2*wall, tube2_d + 2*wall]);
25         }
26
27         // fuse tube
28         translate([0, 0, -eps])
29                 cylinder(r = tube_d/2, h = clip_w + 2*eps);
30
31         // fuse tube slot
32         rotate([0, 0, slot_angle])
33         translate([0, -slot_w/2, -eps])
34                 cube([tube_d, slot_w, clip_w + 2*eps]);
35
36         // wing tube
37         translate([tube2_xoff, -tube_d/2-wall-eps, tube2_d/2 + wall])
38         rotate([-90, 0, 0])
39                 cylinder(r = tube2_d/2, h = tube_d + 2*wall + 2*eps);
40
41         // wing tube slot
42         translate([tube2_xoff - wing_slot/2, -tube_d/2-wall-eps, tube2_d/2 + wall])
43                 cube([wing_slot, tube_d + 2*wall + 2*eps, tube2_d/2 + wall + eps]);
44 }