Line 2... |
Line 2... |
2 |
//include <../configuration.scad> |
2 |
//include <../configuration.scad> |
3 |
|
3 |
|
4 |
|
4 |
|
5 |
|
5 |
|
6 |
module stator1(stator1_sila,lozisko_prumer_vnejsi,sirka_matky,lozisko_prumer_vnitrni,lozisko_prekryv,prumer_sroubu) |
6 |
module stator1(stator1_sila,lozisko_prumer_vnejsi,sirka_matky,lozisko_prumer_vnitrni,lozisko_prekryv,prumer_sroubu) |
7 |
{ |
7 |
{ |
8 |
difference() |
8 |
difference() |
9 |
{ |
9 |
{ |
10 |
cylinder (h = stator1_sila, r=(lozisko_prumer_vnejsi+10+sirka_matky)/2, center = true, $fn=100); |
10 |
cylinder (h = stator1_sila, r=(lozisko_prumer_vnejsi+10+sirka_matky)/2, center = true, $fn=100); |
11 |
|
11 |
|
12 |
|
12 |
|
13 |
//otvor pro hridel rotoru |
13 |
//otvor pro hridel rotoru |
14 |
translate([0,0,0]) |
14 |
translate([0,0,0]) |
15 |
cylinder (h = stator1_sila+0.1, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv+2)/2, center = true, $fn=100); |
15 |
cylinder (h = stator1_sila+0.1, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv+2)/2, center = true, $fn=100); |
16 |
|
16 |
|
17 |
|
17 |
|
18 |
|
18 |
|
19 |
//otvor pro sroub 1 |
19 |
//otvor pro sroub 1 |
20 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
20 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
21 |
cylinder (h = stator1_sila+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
21 |
cylinder (h = stator1_sila+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
22 |
|
22 |
|
23 |
//otvor pro sroub 2 |
23 |
//otvor pro sroub 2 |
24 |
rotate(a=[0,0,120]) |
24 |
rotate(a=[0,0,120]) |
25 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
25 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
26 |
|
- |
|
27 |
cylinder (h = stator1_sila+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
26 |
cylinder (h = stator1_sila+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
28 |
|
- |
|
29 |
//otvor pro sroub 3 |
- |
|
30 |
rotate(a=[0,0,240]) |
- |
|
31 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
- |
|
32 |
|
- |
|
33 |
cylinder (h = stator1_sila+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
- |
|
34 |
|
27 |
|
35 |
|
- |
|
36 |
|
- |
|
- |
|
28 |
//otvor pro sroub 3 |
- |
|
29 |
rotate(a=[0,0,240]) |
- |
|
30 |
translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0]) |
- |
|
31 |
cylinder (h = stator1_sila+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
37 |
|
32 |
} |
38 |
|
- |
|
39 |
} |
33 |
} |
40 |
} |
- |
|
41 |
|
34 |
|
42 |
|
35 |
|
43 |
|
36 |
|
44 |
|
37 |
|
45 |
|
38 |
|