]> www.fi.muni.cz Git - things.git/blob - wing-tube-clip-rear.scad
switch holder.scad
[things.git] / wing-tube-clip-rear.scad
1 eps = 0.01;
2 infty = 200;
3
4 wall = 1.5;
5
6 tube_d = 8.0 + 0.5;
7
8 slot_w = 5;
9 slot_angle = 180;
10
11 wing_xoff = tube_d/2 + 7; // bottom of the slot
12 wing_slot_h = 2.5;
13 wing_slot_w = 4;
14
15 wing_wall = 3.0;
16
17 clip_w = 2*wing_wall + wing_slot_w;
18
19 difference() {
20         hull() {
21                 // fuse cylinder
22                 cylinder(r = tube_d/2 + wall, h = clip_w);
23                 // wing clip
24                 translate([wing_xoff, -tube_d/2 -wall, 0])
25                 cube([wing_slot_h + wing_wall, tube_d + 2*wall, clip_w]);
26         }
27
28         // fuse tube
29         translate([0, 0, -eps])
30                 cylinder(r = tube_d/2, h = clip_w + 2*eps);
31
32         // fuse tube slot
33         rotate([0, 0, slot_angle])
34         translate([0, -slot_w/2, -eps])
35                 cube([tube_d, slot_w, clip_w + 2*eps]);
36
37         // wing slot
38         translate([wing_xoff, -tube_d/2-wall-eps, wing_wall])
39                 cube([wing_slot_h, tube_d + 2*wall + 2*eps, wing_slot_w]);
40 }