4550 |
jacho |
1 |
$fn=40; // model faces resolution. |
4551 |
jacho |
2 |
include <AWSBOX01A_D02_2.scad> |
|
|
3 |
include <../configuration.scad> |
4550 |
jacho |
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
4551 |
jacho |
11 |
AWSBOX01A_D02(); |
4550 |
jacho |
12 |
|
4551 |
jacho |
13 |
module AWSBOX01A_D02(){ |
4550 |
jacho |
14 |
|
|
|
15 |
difference () { |
|
|
16 |
union () { |
|
|
17 |
|
|
|
18 |
//uchyt na sloup |
|
|
19 |
translate([((pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje+2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti)/2,-D02_prumer_obruby/2-2.5-D02_dotahova_vzdalenost/2,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-1*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu-D02_vyska_uchytky/2]) |
|
|
20 |
rotate([0,0,90]) |
|
|
21 |
WINDGAUGE02A_D02(5); |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
translate([radidus_hrany,radidus_hrany,0]) |
|
|
25 |
minkowski() |
|
|
26 |
{ |
|
|
27 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti,D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]); // base plastics brick |
|
|
28 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
29 |
} |
|
|
30 |
|
|
|
31 |
//válce |
|
|
32 |
//vrchní zakulacení 1 |
|
|
33 |
translate([((pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti)/2+radidus_hrany,radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
34 |
|
|
|
35 |
rotate([0,90,0]) |
|
|
36 |
cylinder(h=(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti, r=radidus_hrany, center=true); |
|
|
37 |
|
|
|
38 |
//vrchní zakulacení 2 |
|
|
39 |
translate([((pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti)/2+radidus_hrany,radidus_hrany+D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
40 |
|
|
|
41 |
rotate([0,90,0]) |
|
|
42 |
cylinder(h=(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti, r=radidus_hrany, center=true); |
|
|
43 |
|
|
|
44 |
//vrchní zakulacení 3 |
|
|
45 |
translate([radidus_hrany,radidus_hrany+(D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu)/2,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
46 |
|
|
|
47 |
rotate([0,90,90]) |
|
|
48 |
cylinder(h=D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu, r=radidus_hrany, center=true); |
|
|
49 |
|
|
|
50 |
//vrchní zakulacení 4 |
|
|
51 |
translate([radidus_hrany+(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti,radidus_hrany+(D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu)/2,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
52 |
|
|
|
53 |
rotate([0,90,90]) |
|
|
54 |
cylinder(h=D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu, r=radidus_hrany, center=true); |
|
|
55 |
|
|
|
56 |
//zakulacení koule |
|
|
57 |
//1 |
|
|
58 |
translate([radidus_hrany+(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti,D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu+radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
sphere(d = 2*radidus_hrany, center=true, $fn=100); |
|
|
62 |
|
|
|
63 |
//2 |
|
|
64 |
translate([radidus_hrany+(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti,radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
sphere(d = 2*radidus_hrany, center=true, $fn=100); |
|
|
68 |
|
|
|
69 |
//3 |
|
|
70 |
translate([radidus_hrany,radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
71 |
|
|
|
72 |
|
|
|
73 |
sphere(d = 2*radidus_hrany, center=true, $fn=100); |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
//4 |
|
|
79 |
translate([radidus_hrany,D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu+radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
80 |
|
|
|
81 |
sphere(d = 2*radidus_hrany, center=true, $fn=100); |
|
|
82 |
|
|
|
83 |
|
|
|
84 |
//vrchní kvádr |
|
|
85 |
translate([radidus_hrany,radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
86 |
|
|
|
87 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti,D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu,radidus_hrany]); |
|
|
88 |
|
|
|
89 |
} |
|
|
90 |
|
4569 |
jacho |
91 |
|
|
|
92 |
translate([D02_sila_materialu+radidus_hrany,D02_sila_materialu+radidus_hrany,-0.005]) |
4550 |
jacho |
93 |
minkowski() |
|
|
94 |
{ |
4569 |
jacho |
95 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+D02_dolerance_na_zasunuti,D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu+0.01]); // base plastics brick |
4550 |
jacho |
96 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
97 |
} |
|
|
98 |
|
|
|
99 |
//odečet vrchního kvádru |
|
|
100 |
|
|
|
101 |
translate([radidus_hrany,radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
102 |
|
|
|
103 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti,D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu,radidus_hrany-D02_sila_materialu]); |
|
|
104 |
|
|
|
105 |
//válce odečet |
|
|
106 |
//vrchní zakulacení 1 |
|
|
107 |
translate([((pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti)/2+radidus_hrany,radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
108 |
|
|
|
109 |
rotate([0,90,0]) |
|
|
110 |
cylinder(h=(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti, r=radidus_hrany-D02_sila_materialu, center=true); |
|
|
111 |
|
|
|
112 |
//vrchní zakulacení 2 |
|
|
113 |
translate([((pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti)/2+radidus_hrany,radidus_hrany+D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
114 |
|
|
|
115 |
rotate([0,90,0]) |
|
|
116 |
cylinder(h=(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti, r=radidus_hrany-D02_sila_materialu, center=true); |
|
|
117 |
|
|
|
118 |
//vrchní zakulacení 3 |
|
|
119 |
translate([radidus_hrany,radidus_hrany+(D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu)/2,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
120 |
|
|
|
121 |
rotate([0,90,90]) |
|
|
122 |
cylinder(h=D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu, r=radidus_hrany-D02_sila_materialu, center=true); |
|
|
123 |
|
|
|
124 |
//vrchní zakulacení 4 |
|
|
125 |
translate([radidus_hrany+(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti,radidus_hrany+(D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu)/2,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
126 |
|
|
|
127 |
rotate([0,90,90]) |
|
|
128 |
cylinder(h=D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu, r=radidus_hrany-D02_sila_materialu, center=true); |
|
|
129 |
|
|
|
130 |
//zakulacení koule odečet |
|
|
131 |
//1 |
|
|
132 |
translate([radidus_hrany+(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti,D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu+radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
133 |
|
|
|
134 |
|
|
|
135 |
sphere(d = 2*radidus_hrany-2*D02_sila_materialu, center=true, $fn=100); |
|
|
136 |
|
|
|
137 |
//2 |
|
|
138 |
translate([radidus_hrany+(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*D02_sila_materialu+D02_dolerance_na_zasunuti,radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
139 |
|
|
|
140 |
|
|
|
141 |
sphere(d = 2*radidus_hrany-2*D02_sila_materialu, center=true, $fn=100); |
|
|
142 |
|
|
|
143 |
//3 |
|
|
144 |
translate([radidus_hrany,radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
145 |
|
|
|
146 |
|
|
|
147 |
sphere(d = 2*radidus_hrany-2*D02_sila_materialu, center=true, $fn=100); |
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
//4 |
|
|
153 |
translate([radidus_hrany,D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu+radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany+D02_zapusteni_spodniho_krytu]) |
|
|
154 |
|
|
|
155 |
sphere(d = 2*radidus_hrany-2*D02_sila_materialu, center=true, $fn=100); |
|
|
156 |
|
|
|
157 |
} |
|
|
158 |
//lišty na zasunutí plbase |
|
|
159 |
translate([D02_sila_materialu,D02_sila_materialu+D02_vyska_boxu_pod_plbase-(2*D02_sila_materialu+tloustka_plbase+D02_dolerance_na_zasunuti)/2,D02_zapusteni_spodniho_krytu]) |
|
|
160 |
|
|
|
161 |
lista(); |
|
|
162 |
|
|
|
163 |
|
|
|
164 |
translate([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje+2*D02_sila_materialu+D02_dolerance_na_zasunuti-D02_sila_materialu,D02_sila_materialu+D02_vyska_boxu_pod_plbase-(2*D02_sila_materialu+tloustka_plbase+D02_dolerance_na_zasunuti)/2+radidus_hrany,D02_zapusteni_spodniho_krytu]) |
|
|
165 |
rotate([0,0,180]) |
|
|
166 |
lista(); |
|
|
167 |
|
|
|
168 |
//drzáky spodního krytu |
|
|
169 |
|
|
|
170 |
translate([0,(D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu+2*radidus_hrany)/2-(prumer_sroubu+3*D02_sila_materialu)/2,D02_zapusteni_spodniho_krytu+matka_vyska]) |
|
|
171 |
|
|
|
172 |
drzak_sroubu(); |
|
|
173 |
|
|
|
174 |
|
|
|
175 |
translate([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje+2*D02_sila_materialu+D02_dolerance_na_zasunuti,(D02_vyska_boxu_pod_plbase+D02_vyska_boxu_nad_plbase+2*D02_sila_materialu+2*radidus_hrany)/2+(prumer_sroubu+3*D02_sila_materialu)/2,D02_zapusteni_spodniho_krytu+matka_vyska]) |
|
|
176 |
rotate([0,0,180]) |
|
|
177 |
drzak_sroubu(); |
|
|
178 |
} |
|
|
179 |
|
|
|
180 |
module lista(){ |
|
|
181 |
translate([0,0,D02_sila_materialu]) |
|
|
182 |
difference () { |
|
|
183 |
|
|
|
184 |
union () { |
|
|
185 |
cube([D02_sila_materialu,2*D02_sila_materialu+tloustka_plbase+D02_dolerance_na_zasunuti,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany-2*D02_sila_materialu]); |
|
|
186 |
|
|
|
187 |
|
|
|
188 |
translate([0,(2*D02_sila_materialu+tloustka_plbase+D02_dolerance_na_zasunuti)/2,0]) |
|
|
189 |
|
|
|
190 |
rotate([0,90,90]) |
|
|
191 |
cylinder(h=2*D02_sila_materialu+tloustka_plbase+D02_dolerance_na_zasunuti, r=D02_sila_materialu, center=true); |
|
|
192 |
|
|
|
193 |
//vrchni zakulaceni |
|
|
194 |
translate([0,(2*D02_sila_materialu+tloustka_plbase+D02_dolerance_na_zasunuti)/2,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany-2*D02_sila_materialu]) |
|
|
195 |
rotate([0,90,90]) |
|
|
196 |
cylinder(h=2*D02_sila_materialu+tloustka_plbase+D02_dolerance_na_zasunuti, r=D02_sila_materialu, center=true); |
|
|
197 |
} |
|
|
198 |
|
|
|
199 |
|
|
|
200 |
translate([0,D02_sila_materialu,-D02_sila_materialu]) |
|
|
201 |
cube([D02_sila_materialu,tloustka_plbase+D02_dolerance_na_zasunuti,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*radidus_hrany-D02_sila_materialu]); |
|
|
202 |
|
|
|
203 |
} |
|
|
204 |
|
|
|
205 |
|
|
|
206 |
} |
|
|
207 |
|
|
|
208 |
|
|
|
209 |
module drzak_sroubu(){ |
|
|
210 |
translate([0,0,0]) |
|
|
211 |
difference () { |
|
|
212 |
|
|
|
213 |
union () { |
|
|
214 |
//spodní kvádr |
|
|
215 |
cube([drzak_sroubu_hloubka,prumer_sroubu+3*D02_sila_materialu,drzak_sroubu_vyska]); |
|
|
216 |
|
|
|
217 |
|
|
|
218 |
//vrchní kuzel |
|
|
219 |
|
|
|
220 |
translate([0,(prumer_sroubu+3*D02_sila_materialu)/2,drzak_sroubu_vyska]) |
|
|
221 |
cylinder(h=drzak_sroubu_vyska, r1=drzak_sroubu_hloubka, r2=0, center=false); |
|
|
222 |
} |
|
|
223 |
|
|
|
224 |
//otvor na šroub |
|
|
225 |
translate([drzak_sroubu_hloubka-prumer_sroubu/2-1.5*D02_sila_materialu,(prumer_sroubu+3*D02_sila_materialu)/2,-0.001]) |
4569 |
jacho |
226 |
cylinder(h=drzak_sroubu_vyska+1.1, r=prumer_sroubu/2, center=false); |
4550 |
jacho |
227 |
|
|
|
228 |
//odstranění kužele |
|
|
229 |
difference () { |
|
|
230 |
translate([-3/2*drzak_sroubu_hloubka,-3/2*drzak_sroubu_hloubka,0]) |
|
|
231 |
|
|
|
232 |
cube([3*drzak_sroubu_hloubka,3*drzak_sroubu_hloubka,3*drzak_sroubu_vyska]); |
|
|
233 |
|
|
|
234 |
cube([drzak_sroubu_hloubka,prumer_sroubu+3*D02_sila_materialu,3*drzak_sroubu_vyska]); |
|
|
235 |
|
|
|
236 |
|
|
|
237 |
|
|
|
238 |
|
|
|
239 |
} |
|
|
240 |
|
|
|
241 |
} |
|
|
242 |
} |
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
|
|
246 |
|