4593 |
jacho |
1 |
use <src/bocnice.scad> |
4579 |
jacho |
2 |
|
4593 |
jacho |
3 |
use <src/otvory.scad> |
|
|
4 |
use <src/plbase.scad> |
|
|
5 |
include <src/manufactury_conf.scad> |
4579 |
jacho |
6 |
include <configuration.scad> |
4593 |
jacho |
7 |
include <src/otvory_conf.scad> |
4579 |
jacho |
8 |
|
|
|
9 |
upravena_bocnice(); |
|
|
10 |
|
|
|
11 |
//Slouzi pro vytvoreni vlastnich celicek dle potreby |
|
|
12 |
|
|
|
13 |
//Vytvoreni predniho celicka krabicky |
|
|
14 |
//-------------------------------------------------------- |
|
|
15 |
module upravena_bocnice() |
|
|
16 |
{ |
|
|
17 |
difference() { |
|
|
18 |
union() { |
|
|
19 |
bocnice(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice); |
|
|
20 |
|
|
|
21 |
translate([-((pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje)/2-tloustka_bocnice,-vzdalenost_od_okraje-tloustka_bocnice,-(vyska_bocnice/2)]) |
|
|
22 |
rotate(a=[180,0,90]) |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice); |
|
|
26 |
|
|
|
27 |
} |
|
|
28 |
union() { |
|
|
29 |
//Vytvoreni otvorů v přední stěně |
|
|
30 |
//-------------------------------------------------------- |
|
|
31 |
|
|
|
32 |
translate([-((pocet_der2-1)*vzdalenost_der)/2,-vzdalenost_od_okraje-tloustka_bocnice/2,-(vyska_bocnice/2)]) |
|
|
33 |
{ |
|
|
34 |
//složí k posunu otvoru v násobku děr |
|
|
35 |
posun_p1=10; |
|
|
36 |
translate([posun_p1*vzdalenost_der,0,0]) |
|
|
37 |
UNIPOWER03A(tloustka_bocnice,vzdalenost_der); |
|
|
38 |
|
|
|
39 |
posun_p2=9.5; |
|
|
40 |
translate([posun_p2*vzdalenost_der,0,0]) |
|
|
41 |
MIC338(tloustka_bocnice,vzdalenost_der,vyska_bocnice); |
|
|
42 |
|
|
|
43 |
posun_p3=5.5; |
|
|
44 |
translate([posun_p3*vzdalenost_der,0,0]) |
|
|
45 |
MIC338(tloustka_bocnice,vzdalenost_der,vyska_bocnice); |
|
|
46 |
|
|
|
47 |
} |
|
|
48 |
} |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
|
4593 |
jacho |
53 |
//Vytvoreni zadniho celicka krabicky |
|
|
54 |
//-------------------------------------------------------- |
|
|
55 |
translate([((pocet_der2-1)*vzdalenost_der)/2,(pocet_der1-1)*vzdalenost_der+vzdalenost_od_okraje+tloustka_bocnice/2,-(vyska_bocnice/2)]) |
|
|
56 |
{ |
|
|
57 |
//složí k posunu otvoru v násobku děr |
|
|
58 |
posun_z1=6.5; |
|
|
59 |
translate([-posun_z1*vzdalenost_der,0,0]) |
|
|
60 |
rotate(a=[0,0,180]) |
|
|
61 |
IR(tloustka_bocnice,vyska_bocnice); |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
} |
4579 |
jacho |
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
//Vytvoreni leveho celicka krabicky |
|
|
70 |
//-------------------------------------------------------- |
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
translate([-((pocet_der2-1)*vzdalenost_der)/2-vzdalenost_od_okraje-tloustka_bocnice/2,(pocet_der1-1)*vzdalenost_der,-(vyska_bocnice/2)]) |
|
|
75 |
{ |
|
|
76 |
//složí k posunu otvoru v násobku děr |
4593 |
jacho |
77 |
posun_l1=3.5; |
4580 |
jacho |
78 |
translate([0,-posun_l1*vzdalenost_der,0]) |
4579 |
jacho |
79 |
rotate(a=[0,0,-90]) |
4593 |
jacho |
80 |
IR(tloustka_bocnice,vyska_bocnice); |
4579 |
jacho |
81 |
|
|
|
82 |
posun_l2=10; |
|
|
83 |
|
4580 |
jacho |
84 |
translate([0,-posun_l2*vzdalenost_der,0]) |
4579 |
jacho |
85 |
rotate(a=[0,0,-90]) |
|
|
86 |
I2CDIFF01A(tloustka_bocnice,vzdalenost_der); |
|
|
87 |
|
4593 |
jacho |
88 |
posun_l3=4.5; |
4580 |
jacho |
89 |
translate([0,-posun_l3*vzdalenost_der,0]) |
4579 |
jacho |
90 |
rotate(a=[0,0,-90]) |
4593 |
jacho |
91 |
CHLADICI_OTVORY(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
4579 |
jacho |
92 |
|
4580 |
jacho |
93 |
posun_l4=0; |
|
|
94 |
translate([0,-posun_l4*vzdalenost_der,0]) |
|
|
95 |
|
|
|
96 |
rotate(a=[0,0,-90]) |
4593 |
jacho |
97 |
CHLADICI_OTVORY(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
4579 |
jacho |
98 |
|
|
|
99 |
|
|
|
100 |
} |
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
//Vytvoreni praveho celicka krabicky |
|
|
107 |
//-------------------------------------------------------- |
4580 |
jacho |
108 |
translate([+((pocet_der2-1)*vzdalenost_der)/2+vzdalenost_od_okraje+tloustka_bocnice/2,0,-(vyska_bocnice/2)]) |
|
|
109 |
{ |
|
|
110 |
//složí k posunu otvoru v násobku děr |
4593 |
jacho |
111 |
posun_pr1=3.5; |
4580 |
jacho |
112 |
translate([0,posun_pr1*vzdalenost_der,0]) |
|
|
113 |
rotate(a=[0,0,90]) |
4593 |
jacho |
114 |
IR(tloustka_bocnice,vyska_bocnice); |
4580 |
jacho |
115 |
|
|
|
116 |
posun_pr2=10; |
|
|
117 |
|
|
|
118 |
translate([0,posun_pr2*vzdalenost_der,0]) |
|
|
119 |
rotate(a=[0,0,90]) |
|
|
120 |
I2CDIFF01A(tloustka_bocnice,vzdalenost_der); |
|
|
121 |
|
4593 |
jacho |
122 |
posun_pr3=4.5; |
4580 |
jacho |
123 |
translate([0,posun_pr3*vzdalenost_der,0]) |
|
|
124 |
rotate(a=[0,0,90]) |
4593 |
jacho |
125 |
CHLADICI_OTVORY(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
4580 |
jacho |
126 |
|
|
|
127 |
posun_pr4=0; |
|
|
128 |
translate([0,posun_pr4*vzdalenost_der,0]) |
|
|
129 |
rotate(a=[0,0,90]) |
4593 |
jacho |
130 |
CHLADICI_OTVORY(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
4580 |
jacho |
131 |
|
|
|
132 |
|
|
|
133 |
} |
4579 |
jacho |
134 |
|
|
|
135 |
|
|
|
136 |
} |
|
|
137 |
} |