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