Line 155... |
Line 155... |
155 |
cube([(pocet_der1+1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany,1+((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2,tloustka_plbase+15]); |
155 |
cube([(pocet_der1+1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany,1+((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2,tloustka_plbase+15]); |
156 |
} |
156 |
} |
157 |
|
157 |
|
158 |
|
158 |
|
159 |
} |
159 |
} |
- |
|
160 |
|
- |
|
161 |
|
160 |
//PLBASE ZAKLADNI - bez der s napisem produktu |
162 |
//PLBASE ZAKLADNI - bez der s napisem produktu |
161 |
//------------------------------------------------------------ |
163 |
//------------------------------------------------------------ |
162 |
module plbase_bez_der_napis(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,box_jmeno,tloustka_bocnice){ |
164 |
module plbase_bez_der_napis(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,box_jmeno,tloustka_bocnice){ |
163 |
|
165 |
|
164 |
|
166 |
|
Line 195... |
Line 197... |
195 |
|
197 |
|
196 |
|
198 |
|
197 |
} |
199 |
} |
198 |
} |
200 |
} |
199 |
|
201 |
|
- |
|
202 |
|
200 |
//PLBASE ZAKLADNI - bez der |
203 |
//PLBASE ZAKLADNI - bez der |
201 |
//------------------------------------------------------------ |
204 |
//------------------------------------------------------------ |
202 |
module plbase_bez_der(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice){ |
205 |
module plbase_bez_der(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice){ |
203 |
|
206 |
|
204 |
|
207 |
|
Line 355... |
Line 358... |
355 |
//------------------------------------------------------------ |
358 |
//------------------------------------------------------------ |
356 |
|
359 |
|
357 |
|
360 |
|
358 |
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){ |
361 |
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){ |
359 |
|
362 |
|
360 |
difference () { |
363 |
|
361 |
translate([0,((pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice)/2,0]) |
- |
|
362 |
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); |
- |
|
363 |
|
364 |
|
364 |
|
365 |
|
365 |
union() |
- |
|
366 |
{ |
- |
|
367 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
- |
|
368 |
rotate(a=[180,0,90]) |
- |
|
369 |
translate([radidus_hrany,radidus_hrany,0]) |
- |
|
370 |
translate([-tloustka_bocnice,-tloustka_bocnice,0]) |
- |
|
371 |
|
- |
|
372 |
//obvod |
- |
|
373 |
difference () { |
- |
|
374 |
|
366 |
|
375 |
|
367 |
|
376 |
minkowski() |
- |
|
377 |
{ |
- |
|
378 |
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 |
368 |
union() |
379 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
380 |
} |
- |
|
381 |
translate([tloustka_bocnice,tloustka_bocnice,-0.1]) |
- |
|
382 |
minkowski() |
- |
|
383 |
{ |
369 |
{ |
384 |
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 |
370 |
difference() |
385 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
386 |
} |
- |
|
387 |
|
- |
|
388 |
|
- |
|
389 |
|
- |
|
390 |
|
- |
|
391 |
translate([-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-0.2]) |
- |
|
392 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
393 |
|
- |
|
394 |
|
- |
|
395 |
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]) |
- |
|
396 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
397 |
|
- |
|
398 |
|
- |
|
399 |
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]) |
- |
|
400 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
401 |
|
- |
|
402 |
|
- |
|
403 |
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]) |
- |
|
404 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
405 |
|
- |
|
406 |
|
- |
|
407 |
|
- |
|
408 |
} |
- |
|
409 |
|
- |
|
410 |
|
- |
|
411 |
|
- |
|
412 |
|
371 |
{ |
413 |
//pro vyboceni sloupku |
372 |
//pro vyboceni sloupku |
414 |
|
373 |
|
415 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
374 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,tloustka_plbase/2]) |
416 |
rotate(a=[180,0,90]) |
375 |
rotate(a=[180,0,90]) |
417 |
translate([radidus_hrany,radidus_hrany,0]) |
376 |
translate([radidus_hrany,radidus_hrany,0]) |
418 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
377 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
419 |
difference () { |
- |
|
420 |
|
378 |
|
421 |
translate([-(5)*vzdalenost_der/2,-(5)*vzdalenost_der/2,0]) |
- |
|
422 |
minkowski() |
- |
|
423 |
{ |
- |
|
424 |
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 |
- |
|
425 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
426 |
} |
- |
|
427 |
translate([tloustka_bocnice,tloustka_bocnice,-0.2]) |
379 |
translate([tloustka_bocnice+hrana_bocnice,tloustka_bocnice+hrana_bocnice,0]) |
428 |
minkowski() |
380 |
minkowski() |
429 |
{ |
381 |
{ |
430 |
|
382 |
|
431 |
|
383 |
|
432 |
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 |
384 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni-2*hrana_bocnice,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni-2*hrana_bocnice,tloustka_plbase]); // base plastics brick |
433 |
cylinder(r=radidus_hrany,h=0.1); |
385 |
cylinder(r=radidus_hrany,h=0.1); |
434 |
} |
386 |
} |
435 |
|
387 |
|
436 |
|
388 |
|
437 |
|
389 |
|
438 |
|
390 |
|
439 |
|
391 |
|
440 |
} |
392 |
|
441 |
} |
393 |
|
442 |
//SLOUPKY |
394 |
//SLOUPKY |
443 |
//------------------------------------------------------------ |
395 |
//------------------------------------------------------------ |
444 |
//sloupek 1 |
396 |
//sloupek 1 |
445 |
|
397 |
|
446 |
translate([(-(pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
398 |
translate([(-(pocet_der2)*vzdalenost_der)/2-tloustka_bocnice,-tloustka_bocnice,-tloustka_plbase]) |
447 |
|
399 |
|
448 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
400 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
449 |
|
401 |
|
450 |
//sloupek 2 |
402 |
//sloupek 2 |
451 |
|
403 |
|
452 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
404 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice,-tloustka_bocnice,-tloustka_plbase]) |
453 |
rotate(a=[0,0,90]) |
405 |
rotate(a=[0,0,90]) |
454 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
406 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
455 |
|
407 |
|
456 |
//sloupek 3 |
408 |
//sloupek 3 |
457 |
|
409 |
|
458 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
410 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice, (pocet_der1)*vzdalenost_der+tloustka_bocnice,-tloustka_plbase]) |
459 |
rotate(a=[0,0,180]) |
411 |
rotate(a=[0,0,180]) |
460 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
412 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
461 |
|
413 |
|
462 |
//sloupek 4 |
414 |
//sloupek 4 |
463 |
|
415 |
|
464 |
translate([-((pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
416 |
translate([-((pocet_der2)*vzdalenost_der)/2-tloustka_bocnice, (pocet_der1)*vzdalenost_der+tloustka_bocnice,-tloustka_plbase]) |
465 |
rotate(a=[0,0,270]) |
417 |
rotate(a=[0,0,270]) |
466 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
418 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
467 |
|
419 |
|
468 |
//nápis |
420 |
//nápis |
469 |
|
421 |
|
Line 472... |
Line 424... |
472 |
rotate([0,0,0]) |
424 |
rotate([0,0,0]) |
473 |
write(box_jmeno,h=10,t=tloustka_plbase-1, space= 1.1, font = "Letters.dxf",center=true); |
425 |
write(box_jmeno,h=10,t=tloustka_plbase-1, space= 1.1, font = "Letters.dxf",center=true); |
474 |
|
426 |
|
475 |
|
427 |
|
476 |
|
428 |
|
477 |
|
429 |
} |
478 |
|
430 |
|
479 |
} |
431 |
} |
480 |
} |
- |
|
481 |
|
432 |
|
- |
|
433 |
} |
482 |
|
434 |
|
483 |
|
435 |
|
484 |
|
436 |
|