4357 |
jacho |
1 |
use <text/Write.scad> |
|
|
2 |
use <MLAB_logo.scad> |
|
|
3 |
use <sloupek.scad> |
|
|
4 |
include <manufactury_conf.scad> |
|
|
5 |
include <../configuration.scad> |
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
//Bočnice |
|
|
10 |
//------------------------------------------------------------ |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
module bocnice(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice){ |
|
|
14 |
|
|
|
15 |
difference () { |
|
|
16 |
union() |
|
|
17 |
{ |
|
|
18 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
|
|
19 |
rotate(a=[180,0,90]) |
|
|
20 |
translate([radidus_hrany,radidus_hrany,0]) |
|
|
21 |
translate([-tloustka_bocnice,-tloustka_bocnice,0]) |
|
|
22 |
difference () { |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
minkowski() |
|
|
26 |
{ |
|
|
27 |
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]); // base plastics brick |
|
|
28 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
29 |
} |
|
|
30 |
translate([tloustka_bocnice,tloustka_bocnice,-0.025]) |
|
|
31 |
minkowski() |
|
|
32 |
{ |
|
|
33 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany,vyska_bocnice+0.05]); // base plastics brick |
|
|
34 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
35 |
} |
|
|
36 |
} |
|
|
37 |
|
|
|
38 |
//SLOUPKY |
|
|
39 |
//------------------------------------------------------------ |
|
|
40 |
//sloupek 1 |
|
|
41 |
|
|
|
42 |
translate([(-(pocet_der2)*vzdalenost_der)/2,0,0]) |
|
|
43 |
sloupek (vyska_bocnice,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
|
|
44 |
logo_vyska,logo_sirka); |
|
|
45 |
|
|
|
46 |
//sloupek 2 |
|
|
47 |
|
|
|
48 |
translate([((pocet_der2)*vzdalenost_der)/2,0,0]) |
|
|
49 |
rotate(a=[0,0,90]) |
|
|
50 |
sloupek (vyska_bocnice,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
|
|
51 |
logo_vyska,logo_sirka); |
|
|
52 |
|
|
|
53 |
//sloupek 3 |
|
|
54 |
|
|
|
55 |
translate([((pocet_der2)*vzdalenost_der)/2, (pocet_der1)*vzdalenost_der,0]) |
|
|
56 |
rotate(a=[0,0,180]) |
|
|
57 |
sloupek (vyska_bocnice,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
|
|
58 |
logo_vyska,logo_sirka); |
|
|
59 |
|
|
|
60 |
//sloupek 4 |
|
|
61 |
|
|
|
62 |
translate([-((pocet_der2)*vzdalenost_der)/2, (pocet_der1)*vzdalenost_der,0]) |
|
|
63 |
rotate(a=[0,0,270]) |
|
|
64 |
sloupek (vyska_bocnice,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
|
|
65 |
logo_vyska,logo_sirka); |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
} |
|
|
72 |
|
|
|
73 |
//---------------------------------------------------- |
|
|
74 |
//LOGO MLAB |
|
|
75 |
translate([(5-(pocet_der2)*vzdalenost_der)/2,0,0]) |
|
|
76 |
translate ([0, -vzdalenost_od_okraje-tloustka_bocnice*1/2,0]) // |
|
|
77 |
rotate([0, 90, 270]) |
|
|
78 |
scale(v = [logo_sirka, logo_vyska, 0.3]) |
|
|
79 |
MLAB_logo_short(); |
|
|
80 |
|
|
|
81 |
} |
|
|
82 |
} |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|