Line 18... |
Line 18... |
18 |
{ |
18 |
{ |
19 |
angle_sep = 360/D03_pocet_vyztuh; |
19 |
angle_sep = 360/D03_pocet_vyztuh; |
20 |
|
20 |
|
21 |
//spodní kruh - kvůli výkroji |
21 |
//spodní kruh - kvůli výkroji |
22 |
difference () { |
22 |
difference () { |
- |
|
23 |
cylinder (h=3*D03_tloustka_materialu,r = D03_polomer_stitu,$fn=100); |
23 |
|
24 |
|
24 |
|
- |
|
25 |
cylinder (h=3*D03_tloustka_materialu,r = D03_polomer_stitu,$fn=100); |
- |
|
26 |
translate ([0,0,-0.005]) |
25 |
translate ([0,0,-0.005]) |
27 |
cylinder (h=2*D03_tloustka_materialu+0.01,r = D03_polomer_stitu-D03_tloustka_materialu,$fn=100); |
26 |
cylinder (h=2*D03_tloustka_materialu+0.01,r = D03_polomer_stitu-D03_tloustka_materialu,$fn=100); |
28 |
|
27 |
|
29 |
translate ([0,0,3*D03_tloustka_materialu]) |
28 |
translate ([0,0,3*D03_tloustka_materialu]) |
30 |
|
- |
|
31 |
translate ([0,0,-0.01/2-D03_tloustka_materialu]) |
29 |
translate ([0,0,-0.01/2-D03_tloustka_materialu]) |
32 |
cylinder (h=D03_vyska_stitu-3*D03_tloustka_materialu+0.01,r1=D03_polomer_stitu ,r2=D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem,$fn=100); |
30 |
cylinder (h=D03_vyska_stitu-3*D03_tloustka_materialu+0.01,r1=D03_polomer_stitu ,r2=D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem,$fn=100); |
33 |
|
31 |
|
34 |
|
- |
|
35 |
|
- |
|
36 |
|
32 |
} |
37 |
} |
- |
|
38 |
|
33 |
|
39 |
//spodní kruh - kvůli doplnění výkroje |
34 |
//spodní kruh - kvůli doplnění výkroje |
40 |
difference () { |
35 |
difference () { |
- |
|
36 |
cylinder (h=3*D03_tloustka_materialu,r = D03_polomer_stitu,$fn=100); |
41 |
|
37 |
|
42 |
|
- |
|
43 |
cylinder (h=3*D03_tloustka_materialu,r = D03_polomer_stitu,$fn=100); |
- |
|
44 |
translate ([0,0,-0.005]) |
38 |
translate ([0,0,-0.005]) |
45 |
cylinder (h=3*D03_tloustka_materialu+0.01,r = D03_polomer_stitu-D03_tloustka_materialu,$fn=100); |
39 |
cylinder (h=3*D03_tloustka_materialu+0.01,r = D03_polomer_stitu-D03_tloustka_materialu,$fn=100); |
46 |
|
- |
|
47 |
|
- |
|
48 |
|
40 |
|
49 |
} |
41 |
} |
50 |
|
42 |
|
51 |
|
- |
|
52 |
//horni zavit |
43 |
//horni zavit |
53 |
translate ([0,0,D03_vyska_stitu-0.01]) |
44 |
translate ([0,0,D03_vyska_stitu-0.01]) |
54 |
// screen upper rim |
45 |
// screen upper rim |
55 |
difference () { |
46 |
difference () { |
56 |
screw_thread((D03_polomer_zavitu-D03_tolerance_zavitu)*2,4,55,D03_vyska_zavitu+5,PI/2,2); |
47 |
screw_thread((D03_polomer_zavitu-D03_tolerance_zavitu)*2,4,55,D03_vyska_zavitu+5,PI/2,2); |
57 |
|
48 |
|
58 |
translate ([0,0,-0.01]) |
49 |
translate ([0,0,-0.01]) |
59 |
cylinder (h=D03_vyska_zavitu+0.02 ,r= D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem-D03_material_za_zavitem_pridani ,$fn=100); |
50 |
cylinder (h=D03_vyska_zavitu+0.02 ,r= D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem-D03_material_za_zavitem_pridani ,$fn=100); |
60 |
|
- |
|
61 |
|
51 |
|
62 |
translate ([0,0,D03_vyska_zavitu-0.01]) |
52 |
translate ([0,0,D03_vyska_zavitu-0.01]) |
63 |
cylinder (h=D03_vyska_zavitu+0.02 ,r= D03_polomer_zavitu ,$fn=100); |
53 |
cylinder (h=D03_vyska_zavitu+0.02 ,r= D03_polomer_zavitu ,$fn=100); |
64 |
|
54 |
|
65 |
} |
55 |
} |
66 |
|
56 |
|
67 |
//materiál pod horním závitem |
- |
|
68 |
translate ([0,0,D03_vyska_stitu-D03_tloustka_materialu]) |
- |
|
69 |
difference () { |
- |
|
70 |
translate ([0,0,0]) |
- |
|
71 |
cylinder (h=D03_tloustka_materialu ,r=D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem+D03_tloustka_materialu ,$fn=100); |
- |
|
72 |
|
- |
|
73 |
|
- |
|
74 |
translate ([0,0,-0.01]) |
- |
|
75 |
cylinder (h=D03_tloustka_materialu+0.02 ,r= D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem-D03_material_za_zavitem_pridani ,$fn=100); |
- |
|
76 |
|
- |
|
77 |
} |
- |
|
78 |
|
- |
|
79 |
|
- |
|
80 |
|
- |
|
81 |
//screen |
57 |
//screen |
82 |
|
58 |
|
83 |
translate ([0,0,3*D03_tloustka_materialu]) |
59 |
translate ([0,0,3*D03_tloustka_materialu]) |
84 |
difference () { |
60 |
difference () { |
- |
|
61 |
union () { |
85 |
cylinder (h=D03_vyska_stitu-3*D03_tloustka_materialu,r1=D03_polomer_stitu ,r2=D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem-D03_material_za_zavitem_pridani,$fn=100); |
62 |
cylinder (h=D03_vyska_stitu-3*D03_tloustka_materialu,r1=D03_polomer_stitu ,r2=D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem-D03_material_za_zavitem_pridani,$fn=100); |
86 |
translate ([0,0,-0.01/2-D03_tloustka_materialu]) |
- |
|
87 |
cylinder (h=D03_vyska_stitu-3*D03_tloustka_materialu+0.01,r1=D03_polomer_stitu ,r2=D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem-D03_material_za_zavitem_pridani,$fn=100); |
- |
|
88 |
|
63 |
|
- |
|
64 |
//materiál pod horním závitem |
89 |
translate ([0,0,D03_vyska_stitu-D03_vyska_zavitu-3*D03_tloustka_materialu]) |
65 |
translate ([0,0,D03_vyska_stitu-2*D03_tloustka_materialu-3*D03_tloustka_materialu]) |
- |
|
66 |
translate ([0,0,0]) |
- |
|
67 |
cylinder (h=2*D03_tloustka_materialu ,r=D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem+D03_tloustka_materialu ,$fn=100); |
- |
|
68 |
|
- |
|
69 |
} |
- |
|
70 |
|
- |
|
71 |
//materiál pod horním závitem - odečet |
- |
|
72 |
translate ([0,0,D03_vyska_stitu-2*D03_tloustka_materialu-3*D03_tloustka_materialu]) |
- |
|
73 |
translate ([0,0,-0.01]) |
90 |
cylinder (h=D03_vyska_zavitu+0.02 ,r= D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem-D03_material_za_zavitem_pridani ,$fn=100); |
74 |
cylinder (h=2*D03_tloustka_materialu+0.02 ,r= D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem-D03_material_za_zavitem_pridani ,$fn=100); |
91 |
|
75 |
|
- |
|
76 |
translate ([0,0,-0.01/2-D03_tloustka_materialu]) |
- |
|
77 |
cylinder (h=D03_vyska_stitu-3*D03_tloustka_materialu+0.01,r1=D03_polomer_stitu ,r2=D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem-D03_material_za_zavitem_pridani,$fn=100); |
92 |
|
78 |
|
- |
|
79 |
translate ([0,0,D03_vyska_stitu-D03_vyska_zavitu-3*D03_tloustka_materialu]) |
- |
|
80 |
cylinder (h=D03_vyska_zavitu+0.02 ,r= D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem-D03_material_za_zavitem_pridani ,$fn=100); |
- |
|
81 |
|
93 |
} |
82 |
} |
94 |
|
- |
|
95 |
|
83 |
|
96 |
//inner ring |
84 |
//inner ring |
97 |
|
- |
|
98 |
//spodní závit |
85 |
//spodní závit |
99 |
difference () { |
86 |
difference () { |
100 |
|
- |
|
101 |
union(){ |
87 |
union(){ |
102 |
cylinder (h=D03_vyska_zavitu,r = D03_polomer_zavitu + D03_material_za_zavitem/2,$fn=100); |
88 |
cylinder (h=D03_vyska_zavitu,r = D03_polomer_zavitu + D03_material_za_zavitem/2,$fn=100); |
103 |
|
89 |
|
104 |
//výztuhy |
90 |
//výztuhy |
105 |
// center ribs |
91 |
// center ribs |
106 |
for (i = [0 : (D03_pocet_vyztuh-1)]) { |
92 |
for (i = [0 : (D03_pocet_vyztuh-1)]) { |
107 |
rotate ([90,0,angle_sep* i]) |
93 |
rotate ([90,0,angle_sep* i]) |
108 |
translate ([0,0,-D03_tloustka_materialu/2]) |
94 |
translate ([0,0,-D03_tloustka_materialu/2]) |
109 |
linear_extrude (height = D03_tloustka_materialu, convexity = 10) |
95 |
linear_extrude (height = D03_tloustka_materialu, convexity = 10) |
110 |
polygon(points=[[D03_polomer_zavitu- D03_material_za_zavitem-D03_tolerance_zavitu-D03_material_za_zavitem_pridani,D03_vyska_stitu],[D03_polomer_zavitu, 0],[D03_polomer_stitu - D03_tloustka_materialu,0],[D03_polomer_stitu- D03_tloustka_materialu,3*D03_tloustka_materialu]]); |
96 |
polygon(points=[[D03_polomer_zavitu- D03_material_za_zavitem-D03_tolerance_zavitu-D03_material_za_zavitem_pridani,D03_vyska_stitu],[D03_polomer_zavitu, 0],[D03_polomer_stitu - D03_tloustka_materialu,0],[D03_polomer_stitu- D03_tloustka_materialu,3*D03_tloustka_materialu]]); |
111 |
|
97 |
|
112 |
} |
98 |
} |
113 |
|
- |
|
114 |
|
- |
|
115 |
} |
99 |
} |
116 |
translate([0,0,-1]) |
100 |
translate([0,0,-1]) |
117 |
screw_thread(D03_polomer_zavitu*2,4,55,D03_vyska_zavitu+2,PI/2,2); |
101 |
screw_thread(D03_polomer_zavitu*2,4,55,D03_vyska_zavitu+2,PI/2,2); |
118 |
} |
102 |
} |
119 |
|
- |
|
120 |
|
- |
|
121 |
|
- |
|
122 |
} |
103 |
} |