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 |
|
4658 |
jacho |
47 |
posun_p4=2; |
|
|
48 |
translate([posun_p4*vzdalenost_der,0,0]) |
|
|
49 |
IR(tloustka_bocnice,vyska_bocnice); |
|
|
50 |
|
4579 |
jacho |
51 |
} |
|
|
52 |
} |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
4593 |
jacho |
57 |
//Vytvoreni zadniho celicka krabicky |
|
|
58 |
//-------------------------------------------------------- |
|
|
59 |
translate([((pocet_der2-1)*vzdalenost_der)/2,(pocet_der1-1)*vzdalenost_der+vzdalenost_od_okraje+tloustka_bocnice/2,-(vyska_bocnice/2)]) |
|
|
60 |
{ |
|
|
61 |
//složí k posunu otvoru v násobku děr |
|
|
62 |
posun_z1=6.5; |
|
|
63 |
translate([-posun_z1*vzdalenost_der,0,0]) |
|
|
64 |
rotate(a=[0,0,180]) |
|
|
65 |
IR(tloustka_bocnice,vyska_bocnice); |
4658 |
jacho |
66 |
posun_z2=0; |
|
|
67 |
translate([-posun_z2*vzdalenost_der,0,0]) |
|
|
68 |
rotate(a=[0,0,180]) |
|
|
69 |
CHLADICI_OTVORY2(tloustka_bocnice,vzdalenost_der,pocet_der2-8,vyska_bocnice); |
|
|
70 |
|
|
|
71 |
posun_z3=7.5; |
|
|
72 |
translate([-posun_z3*vzdalenost_der,0,0]) |
|
|
73 |
rotate(a=[0,0,180]) |
|
|
74 |
CHLADICI_OTVORY2(tloustka_bocnice,vzdalenost_der,pocet_der2-9,vyska_bocnice); |
4593 |
jacho |
75 |
|
|
|
76 |
} |
4579 |
jacho |
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
//Vytvoreni leveho celicka krabicky |
|
|
82 |
//-------------------------------------------------------- |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
translate([-((pocet_der2-1)*vzdalenost_der)/2-vzdalenost_od_okraje-tloustka_bocnice/2,(pocet_der1-1)*vzdalenost_der,-(vyska_bocnice/2)]) |
|
|
87 |
{ |
|
|
88 |
//složí k posunu otvoru v násobku děr |
4658 |
jacho |
89 |
posun_l1=4.2; |
4580 |
jacho |
90 |
translate([0,-posun_l1*vzdalenost_der,0]) |
4579 |
jacho |
91 |
rotate(a=[0,0,-90]) |
4593 |
jacho |
92 |
IR(tloustka_bocnice,vyska_bocnice); |
4579 |
jacho |
93 |
|
4658 |
jacho |
94 |
posun_l2=10.5; |
4579 |
jacho |
95 |
|
4580 |
jacho |
96 |
translate([0,-posun_l2*vzdalenost_der,0]) |
4579 |
jacho |
97 |
rotate(a=[0,0,-90]) |
|
|
98 |
I2CDIFF01A(tloustka_bocnice,vzdalenost_der); |
|
|
99 |
|
4658 |
jacho |
100 |
posun_l3=5; |
4580 |
jacho |
101 |
translate([0,-posun_l3*vzdalenost_der,0]) |
4579 |
jacho |
102 |
rotate(a=[0,0,-90]) |
4658 |
jacho |
103 |
CHLADICI_OTVORY2(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
4579 |
jacho |
104 |
|
4580 |
jacho |
105 |
posun_l4=0; |
|
|
106 |
translate([0,-posun_l4*vzdalenost_der,0]) |
|
|
107 |
|
|
|
108 |
rotate(a=[0,0,-90]) |
4658 |
jacho |
109 |
CHLADICI_OTVORY2(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
4579 |
jacho |
110 |
|
|
|
111 |
|
|
|
112 |
} |
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
//Vytvoreni praveho celicka krabicky |
|
|
119 |
//-------------------------------------------------------- |
4580 |
jacho |
120 |
translate([+((pocet_der2-1)*vzdalenost_der)/2+vzdalenost_od_okraje+tloustka_bocnice/2,0,-(vyska_bocnice/2)]) |
|
|
121 |
{ |
|
|
122 |
//složí k posunu otvoru v násobku děr |
4658 |
jacho |
123 |
posun_pr1=4.2; |
4580 |
jacho |
124 |
translate([0,posun_pr1*vzdalenost_der,0]) |
|
|
125 |
rotate(a=[0,0,90]) |
4593 |
jacho |
126 |
IR(tloustka_bocnice,vyska_bocnice); |
4580 |
jacho |
127 |
|
|
|
128 |
posun_pr2=10; |
|
|
129 |
|
|
|
130 |
translate([0,posun_pr2*vzdalenost_der,0]) |
|
|
131 |
rotate(a=[0,0,90]) |
|
|
132 |
I2CDIFF01A(tloustka_bocnice,vzdalenost_der); |
|
|
133 |
|
4658 |
jacho |
134 |
posun_pr3=5; |
4580 |
jacho |
135 |
translate([0,posun_pr3*vzdalenost_der,0]) |
|
|
136 |
rotate(a=[0,0,90]) |
4658 |
jacho |
137 |
CHLADICI_OTVORY2(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
4580 |
jacho |
138 |
|
|
|
139 |
posun_pr4=0; |
|
|
140 |
translate([0,posun_pr4*vzdalenost_der,0]) |
|
|
141 |
rotate(a=[0,0,90]) |
4658 |
jacho |
142 |
CHLADICI_OTVORY2(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
4580 |
jacho |
143 |
|
|
|
144 |
|
|
|
145 |
} |
4579 |
jacho |
146 |
|
|
|
147 |
|
|
|
148 |
} |
|
|
149 |
} |