Line 195... |
Line 195... |
195 |
|
195 |
|
196 |
|
196 |
|
197 |
//PLbase vrchní |
197 |
//PLbase vrchní |
198 |
//------------------------------------------------------------ |
198 |
//------------------------------------------------------------ |
199 |
|
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); |
- |
|
- |
|
200 |
|
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){ |
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 |
|
202 |
|
203 |
difference () { |
203 |
difference () { |
204 |
translate([0,((pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice)/2,0]) |
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); |
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 |
|
206 |
|
207 |
|
207 |
|
208 |
union() |
208 |
union() |
209 |
{ |
209 |
{ |
Line 219... |
Line 219... |
219 |
minkowski() |
219 |
minkowski() |
220 |
{ |
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 |
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); |
222 |
cylinder(r=radidus_hrany,h=0.1); |
223 |
} |
223 |
} |
224 |
translate([tloustka_bocnice,tloustka_bocnice,-0.1]) |
224 |
translate([tloustka_bocnice,tloustka_bocnice,-0.1]) |
225 |
minkowski() |
225 |
minkowski() |
226 |
{ |
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 |
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); |
228 |
cylinder(r=radidus_hrany,h=0.1); |
229 |
} |
229 |
} |
230 |
|
230 |
|
231 |
|
231 |
|
232 |
|
232 |
|
233 |
|
233 |
|
234 |
translate([-radidus_hrany-tloustka_bocnice,-radidus_hrany-tloustka_bocnice,-0.2]) |
234 |
translate([-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-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]); |
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 |
|
236 |
|
237 |
|
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]) |
238 |
translate([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-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]); |
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 |
|
240 |
|
241 |
|
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]) |
242 |
translate([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-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]); |
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 |
|
244 |
|
245 |
|
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]) |
246 |
translate([-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-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]); |
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 |
|
248 |
|
249 |
|
249 |
|
250 |
|
250 |
|
251 |
} |
251 |
} |
252 |
|
252 |
|
Line 284... |
Line 284... |
284 |
} |
284 |
} |
285 |
//SLOUPKY |
285 |
//SLOUPKY |
286 |
//------------------------------------------------------------ |
286 |
//------------------------------------------------------------ |
287 |
//sloupek 1 |
287 |
//sloupek 1 |
288 |
|
288 |
|
289 |
translate([(-(pocet_der2)*vzdalenost_der)/2-tloustka_bocnice,-tloustka_bocnice,-tloustka_plbase]) |
289 |
translate([(-(pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
290 |
|
290 |
|
291 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
291 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
292 |
|
292 |
|
293 |
//sloupek 2 |
293 |
//sloupek 2 |
294 |
|
294 |
|
295 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice,-tloustka_bocnice,-tloustka_plbase]) |
295 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
296 |
rotate(a=[0,0,90]) |
296 |
rotate(a=[0,0,90]) |
297 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
297 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
298 |
|
298 |
|
299 |
//sloupek 3 |
299 |
//sloupek 3 |
300 |
|
300 |
|
301 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice, (pocet_der1)*vzdalenost_der+tloustka_bocnice,-tloustka_plbase]) |
301 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
302 |
rotate(a=[0,0,180]) |
302 |
rotate(a=[0,0,180]) |
303 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
303 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
304 |
|
304 |
|
305 |
//sloupek 4 |
305 |
//sloupek 4 |
306 |
|
306 |
|
307 |
translate([-((pocet_der2)*vzdalenost_der)/2-tloustka_bocnice, (pocet_der1)*vzdalenost_der+tloustka_bocnice,-tloustka_plbase]) |
307 |
translate([-((pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
308 |
rotate(a=[0,0,270]) |
308 |
rotate(a=[0,0,270]) |
309 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
309 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
310 |
|
310 |
|
311 |
|
311 |
|
312 |
|
312 |
|
Line 317... |
Line 317... |
317 |
|
317 |
|
318 |
|
318 |
|
319 |
} |
319 |
} |
320 |
} |
320 |
} |
321 |
|
321 |
|
- |
|
322 |
plbase_vrchni_kryt_pro_odecet(pocet_der1+2,pocet_der2+2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,-0.6); |
- |
|
323 |
|
- |
|
324 |
//PLbase vrchní - pro odecet |
- |
|
325 |
//------------------------------------------------------------ |
- |
|
326 |
|
322 |
|
327 |
|
- |
|
328 |
module plbase_vrchni_kryt_pro_odecet(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,plbase_tolerance_horni,tloustka_plbase){ |
323 |
|
329 |
|
- |
|
330 |
difference () { |
- |
|
331 |
translate([0,((pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice)/2,0]) |
- |
|
332 |
cube([(pocet_der2+3)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice,(pocet_der1+3)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice,tloustka_plbase],true); |
- |
|
333 |
|
- |
|
334 |
|
- |
|
335 |
union() |
- |
|
336 |
{ |
- |
|
337 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
- |
|
338 |
rotate(a=[180,0,90]) |
- |
|
339 |
translate([radidus_hrany,radidus_hrany,0]) |
- |
|
340 |
translate([-tloustka_bocnice,-tloustka_bocnice,0]) |
- |
|
341 |
|
- |
|
342 |
//obvod |
- |
|
343 |
difference () { |
- |
|
344 |
|
- |
|
345 |
|
- |
|
346 |
minkowski() |
- |
|
347 |
{ |
- |
|
348 |
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]); // base plastics brick |
- |
|
349 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
350 |
} |
- |
|
351 |
translate([tloustka_bocnice,tloustka_bocnice,-0.1]) |
- |
|
352 |
minkowski() |
- |
|
353 |
{ |
- |
|
354 |
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 |
- |
|
355 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
356 |
} |
- |
|
357 |
|
- |
|
358 |
|
- |
|
359 |
|
- |
|
360 |
|
- |
|
361 |
translate([-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-0.2]) |
- |
|
362 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
363 |
|
- |
|
364 |
|
- |
|
365 |
translate([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-0.2]) |
- |
|
366 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
367 |
|
- |
|
368 |
|
- |
|
369 |
translate([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-0.2]) |
- |
|
370 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
371 |
|
- |
|
372 |
|
- |
|
373 |
translate([-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-0.2]) |
- |
|
374 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
324 |
|
375 |
|
- |
|
376 |
|
- |
|
377 |
|
- |
|
378 |
} |
- |
|
379 |
|
- |
|
380 |
|
- |
|
381 |
|
- |
|
382 |
|
- |
|
383 |
//pro vyboceni sloupku |
- |
|
384 |
|
- |
|
385 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
- |
|
386 |
rotate(a=[180,0,90]) |
- |
|
387 |
translate([radidus_hrany,radidus_hrany,0]) |
- |
|
388 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
- |
|
389 |
difference () { |
- |
|
390 |
|
- |
|
391 |
translate([-(5)*vzdalenost_der/2,-(5)*vzdalenost_der/2,0]) |
- |
|
392 |
minkowski() |
- |
|
393 |
{ |
- |
|
394 |
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 |
- |
|
395 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
396 |
} |
- |
|
397 |
translate([tloustka_bocnice,tloustka_bocnice,-0.2]) |
- |
|
398 |
minkowski() |
- |
|
399 |
{ |
- |
|
400 |
|
- |
|
401 |
|
- |
|
402 |
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 |
- |
|
403 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
404 |
} |
- |
|
405 |
|
- |
|
406 |
|
- |
|
407 |
|
- |
|
408 |
|
- |
|
409 |
|
- |
|
410 |
} |
- |
|
411 |
} |
- |
|
412 |
//SLOUPKY |
- |
|
413 |
//------------------------------------------------------------ |
- |
|
414 |
//sloupek 1 |
- |
|
415 |
|
- |
|
416 |
translate([(-(pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
- |
|
417 |
|
- |
|
418 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
- |
|
419 |
|
- |
|
420 |
//sloupek 2 |
- |
|
421 |
|
- |
|
422 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
- |
|
423 |
rotate(a=[0,0,90]) |
- |
|
424 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
- |
|
425 |
|
- |
|
426 |
//sloupek 3 |
- |
|
427 |
|
- |
|
428 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
- |
|
429 |
rotate(a=[0,0,180]) |
- |
|
430 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
- |
|
431 |
|
- |
|
432 |
//sloupek 4 |
- |
|
433 |
|
- |
|
434 |
translate([-((pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
- |
|
435 |
rotate(a=[0,0,270]) |
- |
|
436 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
- |
|
437 |
|
- |
|
438 |
|
- |
|
439 |
|
- |
|
440 |
|
- |
|
441 |
|
- |
|
442 |
|
- |
|
443 |
|
- |
|
444 |
|
- |
|
445 |
|
- |
|
446 |
} |
- |
|
447 |
} |
- |
|
448 |
|
- |
|
449 |
|
- |
|
450 |
|
325 |
|
451 |
|
326 |
|
452 |
|