Line 1... |
Line 1... |
1 |
$fn=40; // model faces resolution. |
1 |
$fn=40; // model faces resolution. |
2 |
//include <../configuration.scad> |
2 |
include <../configuration.scad> |
3 |
|
3 |
|
- |
|
4 |
kryt_rotoru(prumer_rotoru1,sila_materialu,prumer_sroubu,vyska_rotoru1); |
4 |
|
5 |
|
5 |
module kryt_rotoru(prumer_rotoru1,sila_materialu,prumer_sroubu) |
6 |
module kryt_rotoru(prumer_rotoru1,sila_materialu,prumer_sroubu,vyska_rotoru1) |
6 |
{ |
7 |
{ |
7 |
|
8 |
|
8 |
//kopule |
9 |
//kopule |
9 |
difference() |
10 |
difference() |
10 |
{ |
11 |
{ |
11 |
sphere(d = prumer_rotoru1, $fn=100); |
12 |
sphere(d = prumer_rotoru1+2*sila_materialu, $fn=100); |
12 |
sphere(d = prumer_rotoru1-2*sila_materialu, $fn=100); |
13 |
sphere(d = prumer_rotoru1+0.1, $fn=100); |
13 |
|
14 |
|
14 |
translate([0,0,-prumer_rotoru1/2]) |
15 |
translate([0,0,-(prumer_rotoru1+2*sila_materialu)/2]) |
15 |
cube(size = [prumer_rotoru1, prumer_rotoru1, prumer_rotoru1], center = true); |
16 |
cube(size = [prumer_rotoru1+2*sila_materialu, prumer_rotoru1+2*sila_materialu, prumer_rotoru1+2*sila_materialu], center = true); |
16 |
|
17 |
|
17 |
} |
18 |
} |
18 |
|
19 |
|
19 |
//dno krytu |
20 |
//válcová část krytu |
20 |
difference() |
21 |
difference() |
21 |
{ |
22 |
{ |
22 |
//zakladni valec |
23 |
//zakladni valec |
23 |
translate([0,0,sila_materialu/2]) |
24 |
translate([0,0,-vyska_rotoru1/2]) |
24 |
cylinder (h = sila_materialu, r=prumer_rotoru1/2, center = true, $fn=100); |
25 |
cylinder (h = vyska_rotoru1, r=(prumer_rotoru1+2*sila_materialu)/2, center = true, $fn=100); |
25 |
|
26 |
|
26 |
//odstraněni casti valce |
27 |
//válec pro vykrojení |
27 |
translate([prumer_rotoru1/2+prumer_sroubu*2,0,sila_materialu/2]) |
28 |
translate([0,0,-vyska_rotoru1/2]) |
28 |
cube(size = [prumer_rotoru1, prumer_rotoru1, sila_materialu+1], center = true); |
29 |
cylinder (h = vyska_rotoru1+0.05, r=(prumer_rotoru1+0.1)/2, center = true, $fn=100); |
29 |
//otvor na sroub |
30 |
|
30 |
translate([0,0,sila_materialu/2]) |
- |
|
31 |
cylinder (h = sila_materialu+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
- |
|
32 |
|
31 |
|
33 |
} |
32 |
} |
34 |
} |
33 |
} |
35 |
|
34 |
|
36 |
|
35 |
|