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 196... |
Line 198... |
196 |
|
198 |
|
197 |
} |
199 |
} |
198 |
} |
200 |
} |
199 |
|
201 |
|
200 |
|
202 |
|
- |
|
203 |
//PLBASE ZAKLADNI - bez der |
- |
|
204 |
//------------------------------------------------------------ |
- |
|
205 |
module plbase_bez_der(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice){ |
- |
|
206 |
|
- |
|
207 |
|
- |
|
208 |
|
- |
|
209 |
difference () { |
- |
|
210 |
//union () { |
- |
|
211 |
translate([radidus_hrany,radidus_hrany,0]) |
- |
|
212 |
minkowski() |
- |
|
213 |
{ |
- |
|
214 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,tloustka_plbase]); // base plastics brick |
- |
|
215 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
216 |
} |
- |
|
217 |
|
- |
|
218 |
|
- |
|
219 |
|
- |
|
220 |
|
- |
|
221 |
|
- |
|
222 |
|
- |
|
223 |
|
- |
|
224 |
|
- |
|
225 |
|
- |
|
226 |
} |
- |
|
227 |
} |
- |
|
228 |
|
201 |
|
229 |
|
202 |
//PLbase vrchní |
230 |
//PLbase vrchní |
203 |
//------------------------------------------------------------ |
231 |
//------------------------------------------------------------ |
204 |
|
232 |
|
205 |
|
233 |
|
Line 330... |
Line 358... |
330 |
//------------------------------------------------------------ |
358 |
//------------------------------------------------------------ |
331 |
|
359 |
|
332 |
|
360 |
|
333 |
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){ |
334 |
|
362 |
|
335 |
difference () { |
- |
|
336 |
translate([0,((pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice)/2,0]) |
- |
|
337 |
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); |
- |
|
338 |
|
363 |
|
339 |
|
364 |
|
340 |
union() |
- |
|
341 |
{ |
- |
|
342 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
- |
|
343 |
rotate(a=[180,0,90]) |
- |
|
344 |
translate([radidus_hrany,radidus_hrany,0]) |
- |
|
345 |
translate([-tloustka_bocnice,-tloustka_bocnice,0]) |
- |
|
346 |
|
365 |
|
347 |
//obvod |
- |
|
348 |
difference () { |
- |
|
349 |
|
366 |
|
350 |
|
367 |
|
351 |
minkowski() |
368 |
union() |
352 |
{ |
369 |
{ |
353 |
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 |
370 |
difference() |
354 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
355 |
} |
- |
|
356 |
translate([tloustka_bocnice,tloustka_bocnice,-0.1]) |
- |
|
357 |
minkowski() |
- |
|
358 |
{ |
371 |
{ |
359 |
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 |
- |
|
360 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
361 |
} |
- |
|
362 |
|
- |
|
363 |
|
- |
|
364 |
|
- |
|
365 |
|
- |
|
366 |
translate([-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-0.2]) |
- |
|
367 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
368 |
|
- |
|
369 |
|
- |
|
370 |
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]) |
- |
|
371 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
372 |
|
- |
|
373 |
|
- |
|
374 |
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]) |
- |
|
375 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
376 |
|
- |
|
377 |
|
- |
|
378 |
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]) |
- |
|
379 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
- |
|
380 |
|
- |
|
381 |
|
- |
|
382 |
|
- |
|
383 |
} |
- |
|
384 |
|
- |
|
385 |
|
- |
|
386 |
|
- |
|
387 |
|
- |
|
388 |
//pro vyboceni sloupku |
372 |
//pro vyboceni sloupku |
389 |
|
373 |
|
390 |
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]) |
391 |
rotate(a=[180,0,90]) |
375 |
rotate(a=[180,0,90]) |
392 |
translate([radidus_hrany,radidus_hrany,0]) |
376 |
translate([radidus_hrany,radidus_hrany,0]) |
393 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
377 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
394 |
difference () { |
- |
|
395 |
|
378 |
|
396 |
translate([-(5)*vzdalenost_der/2,-(5)*vzdalenost_der/2,0]) |
- |
|
397 |
minkowski() |
- |
|
398 |
{ |
- |
|
399 |
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 |
- |
|
400 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
401 |
} |
- |
|
402 |
translate([tloustka_bocnice,tloustka_bocnice,-0.2]) |
379 |
translate([tloustka_bocnice+hrana_bocnice+plbase_tolerance_horni,tloustka_bocnice+hrana_bocnice+plbase_tolerance_horni,0]) |
403 |
minkowski() |
380 |
minkowski() |
404 |
{ |
381 |
{ |
405 |
|
382 |
|
406 |
|
383 |
|
407 |
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 |
408 |
cylinder(r=radidus_hrany,h=0.1); |
385 |
cylinder(r=radidus_hrany,h=0.1); |
409 |
} |
386 |
} |
410 |
|
387 |
|
411 |
|
388 |
|
412 |
|
389 |
|
413 |
|
390 |
|
414 |
|
391 |
|
415 |
} |
392 |
|
416 |
} |
393 |
|
417 |
//SLOUPKY |
394 |
//SLOUPKY |
418 |
//------------------------------------------------------------ |
395 |
//------------------------------------------------------------ |
419 |
//sloupek 1 |
396 |
//sloupek 1 |
420 |
|
397 |
|
- |
|
398 |
|
421 |
translate([(-(pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
399 |
translate([(-(pocet_der2)*vzdalenost_der)/2-vzdalenost_od_okraje+prumer_matice/2,-vzdalenost_od_okraje+prumer_matice/2,-tloustka_plbase/2-0.2]) |
422 |
|
400 |
|
423 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
401 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
424 |
|
402 |
|
425 |
//sloupek 2 |
403 |
//sloupek 2 |
426 |
|
404 |
|
427 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
405 |
translate([((pocet_der2)*vzdalenost_der)/2+vzdalenost_od_okraje-prumer_matice/2,-vzdalenost_od_okraje+prumer_matice/2,-tloustka_plbase/2-0.2]) |
428 |
rotate(a=[0,0,90]) |
406 |
rotate(a=[0,0,90]) |
429 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
407 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
430 |
|
408 |
|
431 |
//sloupek 3 |
409 |
//sloupek 3 |
432 |
|
410 |
|
433 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
411 |
translate([((pocet_der2)*vzdalenost_der)/2+vzdalenost_od_okraje-prumer_matice/2, (pocet_der1)*vzdalenost_der+vzdalenost_od_okraje-prumer_matice/2,-tloustka_plbase/2-0.2]) |
434 |
rotate(a=[0,0,180]) |
412 |
rotate(a=[0,0,180]) |
435 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
413 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
436 |
|
414 |
|
437 |
//sloupek 4 |
415 |
//sloupek 4 |
438 |
|
416 |
|
439 |
translate([-((pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
417 |
translate([-((pocet_der2)*vzdalenost_der)/2-vzdalenost_od_okraje+prumer_matice/2, (pocet_der1)*vzdalenost_der+vzdalenost_od_okraje-prumer_matice/2,-tloustka_plbase/2-0.2]) |
440 |
rotate(a=[0,0,270]) |
418 |
rotate(a=[0,0,270]) |
441 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
419 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
442 |
|
420 |
|
443 |
//nápis |
421 |
//nápis |
444 |
|
422 |
|
445 |
translate([radidus_hrany,radidus_hrany,0]) |
423 |
translate([0,0,0]) |
446 |
translate([ 0, ((pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2+tloustka_bocnice, tloustka_plbase/2-(tloustka_plbase-1)/2+0.01]) |
424 |
translate([ 0, ((pocet_der1-1)*vzdalenost_der+vzdalenost_od_okraje+2*tloustka_bocnice)/2, tloustka_plbase/2-(tloustka_plbase-1)/2+0.01]) |
447 |
rotate([0,0,0]) |
425 |
rotate([0,0,0]) |
448 |
write(box_jmeno,h=10,t=tloustka_plbase-1, space= 1.1, font = "Letters.dxf",center=true); |
426 |
write(box_jmeno,h=10,t=tloustka_plbase-1, space= 1.1, font = "Letters.dxf",center=true); |
449 |
|
427 |
|
450 |
|
428 |
|
451 |
|
429 |
|
452 |
|
- |
|
453 |
|
- |
|
454 |
} |
430 |
} |
- |
|
431 |
|
455 |
} |
432 |
} |
456 |
|
433 |
|
- |
|
434 |
} |
457 |
|
435 |
|
458 |
|
436 |
|
459 |
|
437 |
|