Rev Author Line No. Line
4277 jacho 1 $fn=40; // model faces resolution.
2 //include <configuration.scad>
3  
4 module rotor1(prumer_rotoru1,vyska_rotoru1,prumer_sroubu,vyska_matky,prumer_orechu,sila_materialu,sila_materialu_vule,hloubka_prekryti,hloubka_uchytu,sila_uchytu,vyska_uchytu,tolerance_uchytu)
5 {
6 difference()
7 {
8 union ()
9 {
10  
11 cylinder (h = vyska_rotoru1-hloubka_prekryti, r=prumer_rotoru1/2, center = true, $fn=100);
12  
13  
14 translate([0,0,vyska_rotoru1/2])
15 cylinder (h = hloubka_prekryti, r=(prumer_rotoru1/2) -sila_materialu-sila_materialu_vule, center = true, $fn=100);
16  
17 //otvory pro lopatky
18 translate([0,0,-(vyska_rotoru1-hloubka_prekryti)/2-(vyska_uchytu+tolerance_uchytu)/2])
19  
20 //otvory pro lopatky
21 difference ()
22 {
23 cylinder (h = vyska_uchytu+tolerance_uchytu, r=(prumer_rotoru1/2), center = true, $fn=100);
24  
25 cylinder (h = vyska_uchytu+2*tolerance_uchytu, r=(prumer_rotoru1/2-hloubka_uchytu+5), center = true, $fn=100);
26  
27 //dira pro prvni uchyt lopatky
28 translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,0])
29 cube([hloubka_uchytu,sila_uchytu+tolerance_uchytu,vyska_uchytu+2*tolerance_uchytu],true);
30  
31 //dira pro druhy uchyt lopatky
32  
33 rotate(a=[0,0,120])
34  
35 translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,0])
36 cube([hloubka_uchytu,sila_uchytu+tolerance_uchytu,vyska_uchytu+2*tolerance_uchytu],true);
37  
38 //dira pro treti uchyt lopatky
39  
40 rotate(a=[0,0,240])
41  
42 translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,0])
43 cube([hloubka_uchytu,sila_uchytu+tolerance_uchytu,vyska_uchytu+2*tolerance_uchytu],true);
44  
45 }
46  
47 }
48  
49 //otvory pro uchyceni krytky rotoru
50 translate([0,0,hloubka_prekryti/2])
51 cylinder (h = vyska_rotoru1+0.1, r=prumer_sroubu/2, center = true, $fn=100);
52  
53 translate([0,0,-(vyska_rotoru1-hloubka_prekryti)/2+vyska_matky/2])
54 cylinder (h = vyska_matky+0.1, r=prumer_orechu/2, center = true, $fn=100);
55  
56  
57 //otvor pro uchyceni prvni lopatky
58 translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,hloubka_prekryti/2])
59 cylinder (h = vyska_rotoru1+0.1, r=prumer_sroubu/2, center = true, $fn=100);
60  
61 translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,-(vyska_rotoru1-hloubka_prekryti)/2+vyska_matky/2])
62 cylinder (h = vyska_matky+0.1, r=prumer_orechu/2, center = true, $fn=100);
63  
64 //otvor pro uchyceni druhe lopatky
65 rotate(a=[0,0,120])
66 translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,hloubka_prekryti/2])
67 cylinder (h = vyska_rotoru1+0.1, r=prumer_sroubu/2, center = true, $fn=100);
68  
69 rotate(a=[0,0,120])
70 translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,-(vyska_rotoru1-hloubka_prekryti)/2+vyska_matky/2])
71 cylinder (h = vyska_matky+0.1, r=prumer_orechu/2, center = true, $fn=100);
72  
73 //otvor pro uchyceni treti lopatky
74 rotate(a=[0,0,240])
75 translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,hloubka_prekryti/2])
76 cylinder (h = vyska_rotoru1+0.1, r=prumer_sroubu/2, center = true, $fn=100);
77  
78 rotate(a=[0,0,240])
79 translate([hloubka_uchytu/2+(prumer_rotoru1/2-hloubka_uchytu),0,-(vyska_rotoru1-hloubka_prekryti)/2+vyska_matky/2])
80 cylinder (h = vyska_matky+0.1, r=prumer_orechu/2, center = true, $fn=100);
81  
82 }
83  
84 }
85  
86  
87  
88