Line 33... |
Line 33... |
33 |
|
33 |
|
34 |
|
34 |
|
35 |
for (i = [0:1:pocet_der1-1]) { |
35 |
for (i = [0:1:pocet_der1-1]) { |
36 |
for (a = [0:1:pocet_der2-1]) { |
36 |
for (a = [0:1:pocet_der2-1]) { |
37 |
|
37 |
|
38 |
translate([vzdalenost_od_okraje+vzdalenost_der*i,vzdalenost_od_okraje+vzdalenost_der*a, (tloustka_plbase-prekryti_der)/2]) // center top screw |
38 |
translate([vzdalenost_od_okraje+vzdalenost_der*i+tloustka_bocnice,vzdalenost_od_okraje+vzdalenost_der*a+tloustka_bocnice, (tloustka_plbase-prekryti_der)/2]) // center top screw |
39 |
cylinder(((tloustka_plbase-prekryti_der)), d=prumer_sroubu, center=true); |
39 |
cylinder(((tloustka_plbase-prekryti_der)), d=prumer_sroubu, center=true); |
40 |
} |
40 |
} |
41 |
} |
41 |
} |
42 |
|
42 |
|
43 |
|
43 |
|
Line 192... |
Line 192... |
192 |
} |
192 |
} |
193 |
} |
193 |
} |
194 |
|
194 |
|
195 |
|
195 |
|
196 |
|
196 |
|
- |
|
197 |
//PLbase vrchnà |
- |
|
198 |
//------------------------------------------------------------ |
- |
|
199 |
|
- |
|
200 |
plbase_vrchni_kryt(2,3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,plbase_tolerance_horni); |
- |
|
201 |
module plbase_vrchni_kryt(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,plbase_tolerance_horni){ |
- |
|
202 |
|
- |
|
203 |
difference () { |
- |
|
204 |
translate([0,((pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice)/2,0]) |
- |
|
205 |
cube([(pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice,(pocet_der1+2)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice,tloustka_plbase],true); |
- |
|
206 |
|
- |
|
207 |
|
- |
|
208 |
union() |
- |
|
209 |
{ |
- |
|
210 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
- |
|
211 |
rotate(a=[180,0,90]) |
- |
|
212 |
translate([radidus_hrany,radidus_hrany,0]) |
- |
|
213 |
translate([-tloustka_bocnice,-tloustka_bocnice,0]) |
- |
|
214 |
|
- |
|
215 |
//obvod |
- |
|
216 |
difference () { |
- |
|
217 |
|
- |
|
218 |
|
- |
|
219 |
minkowski() |
- |
|
220 |
{ |
- |
|
221 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,vyska_bocnice+tloustka_plbase]); // base plastics brick |
- |
|
222 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
223 |
} |
- |
|
224 |
translate([tloustka_bocnice,tloustka_bocnice,-0.1]) |
- |
|
225 |
minkowski() |
- |
|
226 |
{ |
- |
|
227 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany-2*plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany-2*plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.2]); // base plastics brick |
- |
|
228 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
229 |
} |
- |
|
230 |
|
- |
|
231 |
|
- |
|
232 |
|
- |
|
233 |
|
- |
|
234 |
translate([-radidus_hrany-tloustka_bocnice,-radidus_hrany-tloustka_bocnice,-0.2]) |
- |
|
235 |
cube([vzdalenost_der/2+tloustka_bocnice-plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice-plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
236 |
|
- |
|
237 |
|
- |
|
238 |
translate([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2+plbase_tolerance_horni,-radidus_hrany-tloustka_bocnice,-0.2]) |
- |
|
239 |
cube([vzdalenost_der/2+tloustka_bocnice-plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice-plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
240 |
|
- |
|
241 |
|
- |
|
242 |
translate([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2+plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2+plbase_tolerance_horni,-0.2]) |
- |
|
243 |
cube([vzdalenost_der/2+tloustka_bocnice-plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice-plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
244 |
|
- |
|
245 |
|
- |
|
246 |
translate([-radidus_hrany-tloustka_bocnice,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2+plbase_tolerance_horni,-0.2]) |
- |
|
247 |
cube([vzdalenost_der/2+tloustka_bocnice-plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
248 |
|
- |
|
249 |
|
- |
|
250 |
|
- |
|
251 |
} |
- |
|
252 |
|
- |
|
253 |
|
- |
|
254 |
|
- |
|
255 |
|
- |
|
256 |
//pro vyboceni sloupku |
- |
|
257 |
|
- |
|
258 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
- |
|
259 |
rotate(a=[180,0,90]) |
- |
|
260 |
translate([radidus_hrany,radidus_hrany,0]) |
- |
|
261 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
- |
|
262 |
difference () { |
- |
|
263 |
|
- |
|
264 |
translate([-(5)*vzdalenost_der/2,-(5)*vzdalenost_der/2,0]) |
- |
|
265 |
minkowski() |
- |
|
266 |
{ |
- |
|
267 |
cube([(pocet_der1+5)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+4*tloustka_bocnice,(pocet_der2+5)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+4*tloustka_bocnice,vyska_bocnice+tloustka_plbase]); // base plastics brick |
- |
|
268 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
269 |
} |
- |
|
270 |
translate([tloustka_bocnice,tloustka_bocnice,-0.2]) |
- |
|
271 |
minkowski() |
- |
|
272 |
{ |
- |
|
273 |
|
- |
|
274 |
|
- |
|
275 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); // base plastics brick |
- |
|
276 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
277 |
} |
- |
|
278 |
|
- |
|
279 |
|
- |
|
280 |
|
- |
|
281 |
|
- |
|
282 |
|
- |
|
283 |
} |
- |
|
284 |
} |
- |
|
285 |
//SLOUPKY |
- |
|
286 |
//------------------------------------------------------------ |
- |
|
287 |
//sloupek 1 |
- |
|
288 |
|
- |
|
289 |
translate([(-(pocet_der2)*vzdalenost_der)/2-tloustka_bocnice,-tloustka_bocnice,-tloustka_plbase]) |
- |
|
290 |
|
- |
|
291 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
- |
|
292 |
|
- |
|
293 |
//sloupek 2 |
197 |
|
294 |
|
- |
|
295 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice,-tloustka_bocnice,-tloustka_plbase]) |
- |
|
296 |
rotate(a=[0,0,90]) |
- |
|
297 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
198 |
|
298 |
|
- |
|
299 |
//sloupek 3 |
199 |
|
300 |
|
- |
|
301 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice, (pocet_der1)*vzdalenost_der+tloustka_bocnice,-tloustka_plbase]) |
- |
|
302 |
rotate(a=[0,0,180]) |
- |
|
303 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
200 |
|
304 |
|
- |
|
305 |
//sloupek 4 |
- |
|
306 |
|
- |
|
307 |
translate([-((pocet_der2)*vzdalenost_der)/2-tloustka_bocnice, (pocet_der1)*vzdalenost_der+tloustka_bocnice,-tloustka_plbase]) |
- |
|
308 |
rotate(a=[0,0,270]) |
- |
|
309 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
- |
|
310 |
|
201 |
|
311 |
|
202 |
|
312 |
|
- |
|
313 |
|
- |
|
314 |
|
- |
|
315 |
|
- |
|
316 |
|
- |
|
317 |
|
- |
|
318 |
|
- |
|
319 |
} |
- |
|
320 |
} |
- |
|
321 |
|
- |
|
322 |
|
- |
|
323 |
|
- |
|
324 |
|
- |
|
325 |
|
203 |
|
326 |
|