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