4731 |
jacho |
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 |
|