]> www.fi.muni.cz Git - things.git/blob - screw-ziptie-holder.scad
Motor holder for Hydrofoam RC plane
[things.git] / screw-ziptie-holder.scad
1 infty = 100;
2 eps = 0.01;
3
4 wall = 1.5;
5
6 zip_w = 4.5;
7 zip_h = 3;
8 end_wall = 4;
9
10 body_w = zip_w + 2*wall;
11 body_l = 20;
12
13 screw_hole = 3.7;
14
15 module body() {
16         translate([-body_l/2, -body_w/2, 0])
17                 cube([body_l, body_w, wall]);
18
19         // front and rear
20         for (i = [1, -1]) scale([i, 1, 1])
21                 translate([body_l/2-end_wall, -body_w/2, 0])
22                         cube([end_wall, body_w, 2*wall + zip_h]);
23 }
24
25 difference() {
26         body();
27         // screw hole
28         translate([0, 0, -eps])
29                 cylinder(r = screw_hole/2, h = wall + 2*eps);
30         // front and rear holes
31         for (i = [1, -1]) scale([i, 1, 1])
32                 translate([body_l/2-wall-end_wall, -zip_w/2, -eps])
33                         cube([end_wall+wall+eps, zip_w, wall + zip_h + eps]);
34 }