]> www.fi.muni.cz Git - things.git/blob - wing-screw-support.scad
zaves-clip
[things.git] / wing-screw-support.scad
1 eps = 0.01;
2 infty = 100;
3
4 width = 30;
5 depth = 10;
6 hole_d = 3.5;
7 wall_angle = 40;
8 hole_angle = 10;
9 hole_wall = 2;
10 wall = 1;
11 front_h = 0.5;
12
13 difference() {
14         hull() {
15                 translate([-width/2, 0, 0])
16                         rotate([hole_angle, 0, 0])
17                         cube([width, eps, front_h]);
18                 intersection() {
19                         translate([0, depth, 0])
20                                 rotate([hole_angle, 0, 0])
21                                 translate([0, 0, -infty/2])
22                                 cylinder(r = hole_d/2 + hole_wall, h = infty);
23                         translate([-infty/2, -infty/2, 0]) cube(infty); // z > 0
24                         translate([0, 0, wall])
25                                 rotate([-90+wall_angle, 0, 0])
26                                 translate([-infty/2, 0, 0]) cube(infty); // upper side
27                 }
28         }
29         // screw hole
30         translate([0, depth, 0])
31                 rotate([hole_angle, 0, 0])
32                 translate([0, 0, -infty/2])
33                 cylinder(r = hole_d/2, h = infty);
34 }
35         
36