]> www.fi.muni.cz Git - things.git/blob - dil-stavebnice.scad
rocket: alternative rod holder
[things.git] / dil-stavebnice.scad
1 infty = 1000;
2 eps = 0.01;
3
4 /*
5 desticka: 13mm x 50mm, tl. 1.25mm, vyska i s valci 5.25mm
6 otvor 7.5mm od okraje, prumer 7.5mm, tl. steny tak 1.2-1.5mm
7 maly otvor prumer 5.5mm, vnejsi 7.9 mm, 5 mm od okraje, roztec 40 mm
8 */
9
10 difference() {
11         union () {
12                 hull() {
13                         translate([-7.5/2, 7.75, 5.25/2])
14                                 cube([1.25, 1.25, 5.25], center=true);
15                         translate([7.5/2, 7.75, 5.25/2])
16                                 cube([1.25, 1.25, 5.25], center=true);
17                         translate([-12, 7.75, 1.25/2])
18                                 cube([1.25, 1.25, 1.25], center=true);
19                         translate([12, 7.75, 1.25/2])
20                                 cube([1.25, 1.25, 1.25], center=true);
21                 };
22                 translate([-50/2, 0, 0])
23                         cube([50, 13, 1.25]);
24                 translate([0, 7.75, 0])
25                         cylinder(r = (10.2+0.6)/2, h = 5.25);
26                 for (x = [1, -1]) scale([x, 1, 1]) {
27                         translate([20, 5, 0]) difference() {
28                                 cylinder(r = (7.9+0.5)/2, h = 5.25);
29                                 cylinder(r1 = 3.5/2, r2 = (5.5+0.7)/2, h = 5.5);
30                         };
31                 };
32         };
33
34         translate([0, 7.75, -1]) {
35                 cylinder(r = (7.75+0.6)/2, h = 10);
36         };
37         for (x = [-17, 17]) rotate([0, 0, x])
38                 translate([-infty/2, 17, -1])
39                         cube(infty);
40 };
41
42 /*
43 difference() {
44         cube(10);
45         translate([0, 0, -0.5])
46                 cylinder(r1 = 5, r2 = 10, h =11);
47 };
48 */