1 |
use <configuration/celicko.scad> |
- |
|
2 |
use <configuration/sloupek.scad> |
1 |
use <configuration/sloupek.scad> |
3 |
use <configuration/lista.scad> |
- |
|
4 |
use <configuration/plbase.scad> |
2 |
use <configuration/plbase.scad> |
5 |
use <uravena_celicka.scad> |
3 |
use <configuration/bocnice.scad> |
6 |
use <configuration/otvory.scad> |
4 |
use <configuration/otvory.scad> |
7 |
use <configuration/text/Write.scad> |
5 |
use <configuration/text/Write.scad> |
8 |
|
- |
|
- |
|
6 |
use <upravena_bocnice.scad> |
9 |
|
7 |
|
10 |
include <configuration/manufactury_conf.scad> |
8 |
include <configuration/manufactury_conf.scad> |
11 |
include <configuration.scad> |
9 |
include <configuration.scad> |
12 |
include <configuration/otvory_conf.scad> |
10 |
include <configuration/otvory_conf.scad> |
13 |
|
11 |
|
14 |
|
12 |
|
15 |
barva_sloupku = "cyan"; |
13 |
barva_sloupku = "cyan"; |
16 |
barva_listy = "red"; |
14 |
barva_listy = "red"; |
17 |
barva_celicka = "green"; |
15 |
barva_celicka = "green"; |
18 |
barva_plbase = "yellow"; |
16 |
barva_plbase = "yellow"; |
19 |
|
17 |
|
20 |
//SLOUPKY |
- |
|
21 |
//------------------------------------------------------------ |
- |
|
22 |
//sloupek 1 |
- |
|
23 |
color(barva_sloupku) |
- |
|
24 |
translate([(-(pocet_der2+2)*vzdalenost_der)/2,0,0]) |
- |
|
25 |
sloupek (vyska,zapust1,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
- |
|
26 |
logo_vyska,logo_sirka); |
- |
|
27 |
|
- |
|
28 |
//sloupek 2 |
- |
|
29 |
color(barva_sloupku) |
- |
|
30 |
translate([((pocet_der2+2)*vzdalenost_der)/2,0,0]) |
- |
|
31 |
rotate(a=[0,0,90]) |
- |
|
32 |
sloupek (vyska,zapust1,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
- |
|
33 |
logo_vyska,logo_sirka); |
- |
|
34 |
|
- |
|
35 |
//sloupek 3 |
- |
|
36 |
color(barva_sloupku) |
- |
|
37 |
translate([((pocet_der2+2)*vzdalenost_der)/2, (pocet_der1+2)*vzdalenost_der,0]) |
- |
|
38 |
rotate(a=[0,0,180]) |
18 |
//translate([0.5*10.16,-5.08,14]) |
39 |
sloupek (vyska,zapust1,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
- |
|
40 |
logo_vyska,logo_sirka); |
- |
|
41 |
|
- |
|
42 |
//sloupek 4 |
- |
|
43 |
color(barva_sloupku) |
- |
|
44 |
translate([-((pocet_der2+2)*vzdalenost_der)/2, (pocet_der1+2)*vzdalenost_der,0]) |
- |
|
45 |
rotate(a=[0,0,270]) |
- |
|
46 |
sloupek (vyska,zapust1,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
- |
|
47 |
logo_vyska,logo_sirka); |
19 |
// cube([10.16,10.16,10.16]); |
48 |
|
20 |
|
49 |
|
21 |
|
- |
|
22 |
//BOCNICE SE DNEM |
- |
|
23 |
//------------------------------------------------------------- |
- |
|
24 |
upravena_bocnice(); |
50 |
|
25 |
|
51 |
//VELKE LISTY |
- |
|
52 |
//-------------------------------------------------------- |
- |
|
53 |
//lista velka 1 |
- |
|
54 |
color(barva_listy) |
- |
|
55 |
translate([0,-(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),-vyska/2]) |
- |
|
56 |
rotate(a=[0,0,0]) |
- |
|
57 |
lista (vzdalenost_der,pocet_der2,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
58 |
|
26 |
|
59 |
//lista velka 2 |
- |
|
60 |
color(barva_listy) |
- |
|
61 |
translate([0,-(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),vyska/2]) |
- |
|
62 |
rotate(a=[180,0,180]) |
- |
|
63 |
lista (vzdalenost_der,pocet_der2,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
64 |
|
- |
|
65 |
//lista velka 3 |
- |
|
66 |
color(barva_listy) |
- |
|
67 |
translate([0,((pocet_der1+2)*vzdalenost_der)+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),vyska/2]) |
- |
|
68 |
rotate(a=[180,0,0]) |
- |
|
69 |
lista (vzdalenost_der,pocet_der2,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
70 |
|
- |
|
71 |
//lista velka 4 |
- |
|
72 |
color(barva_listy) |
- |
|
73 |
translate([0,((pocet_der1+2)*vzdalenost_der)+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),-vyska/2]) |
- |
|
74 |
rotate(a=[0,0,180]) |
- |
|
75 |
lista (vzdalenost_der,pocet_der2,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
76 |
|
- |
|
77 |
|
- |
|
78 |
|
- |
|
79 |
//LISTY MALE |
- |
|
80 |
//--------------------------------------------------------- |
- |
|
81 |
//lista mala 1 |
- |
|
82 |
color(barva_listy) |
- |
|
83 |
translate([((pocet_der2+2)*vzdalenost_der)/2+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),((pocet_der1+2)*vzdalenost_der)/2,-vyska/2]) |
- |
|
84 |
rotate(a=[0,0,90]) |
- |
|
85 |
lista (vzdalenost_der,pocet_der1,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
86 |
|
- |
|
87 |
//lista mala 2 |
- |
|
88 |
color(barva_listy) |
- |
|
89 |
translate([((pocet_der2+2)*vzdalenost_der)/2+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),((pocet_der1+2)*vzdalenost_der)/2,vyska/2]) |
- |
|
90 |
rotate(a=[0,180,90]) |
- |
|
91 |
lista (vzdalenost_der,pocet_der1,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
92 |
|
- |
|
93 |
//lista mala 3 |
- |
|
94 |
color(barva_listy) |
- |
|
95 |
translate([-(((pocet_der2+2)*vzdalenost_der)/2+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)),((pocet_der1+2)*vzdalenost_der)/2,vyska/2]) |
- |
|
96 |
rotate(a=[0,180,270]) |
- |
|
97 |
lista (vzdalenost_der,pocet_der1,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
98 |
|
- |
|
99 |
//lista mala 4 |
- |
|
100 |
color(barva_listy) |
- |
|
101 |
translate([-(((pocet_der2+2)*vzdalenost_der)/2+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)),((pocet_der1+2)*vzdalenost_der)/2,-vyska/2]) |
- |
|
102 |
rotate(a=[0,0,270]) |
- |
|
103 |
lista (vzdalenost_der,pocet_der1,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
104 |
|
- |
|
105 |
//CELICKA |
- |
|
106 |
//-------------------------------------------------------- |
- |
|
107 |
//celicko predni |
- |
|
108 |
|
- |
|
109 |
color(barva_celicka) |
- |
|
110 |
translate([0,-(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)-((((vzdalenost_od_okraje+vzdalenost_od_diry)/2)-sirka_materialu)-(tloustka_celicka/2)),-(vyska-2*zapust-vule_vysky_celicka)/2]) |
- |
|
111 |
celicko_predni (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky); |
- |
|
112 |
|
- |
|
113 |
//celicko zadni |
- |
|
114 |
color(barva_celicka) |
- |
|
115 |
translate([0,((pocet_der1+2)*vzdalenost_der)+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)+((((vzdalenost_od_okraje+vzdalenost_od_diry)/2)-sirka_materialu)-(tloustka_celicka/2)),-(vyska-2*zapust-vule_vysky_celicka)/2]) |
- |
|
116 |
rotate(a=[0,0,180]) |
- |
|
117 |
celicko_zadni (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky); |
- |
|
118 |
///* |
- |
|
119 |
//celicko prave |
- |
|
120 |
color(barva_celicka) |
- |
|
121 |
translate([((pocet_der2+2)*vzdalenost_der)/2+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)+((((vzdalenost_od_okraje+vzdalenost_od_diry)/2)-sirka_materialu)-(tloustka_celicka/2)),(pocet_der1+2)*vzdalenost_der/2,-(vyska-2*zapust-vule_vysky_celicka)/2]) |
- |
|
122 |
rotate(a=[0,0,90]) |
- |
|
123 |
celicko_prave (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky); |
- |
|
124 |
//*/ |
- |
|
125 |
//celicko leve |
- |
|
126 |
color(barva_celicka) |
- |
|
127 |
translate([-((pocet_der2+2)*vzdalenost_der)/2-(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)-((((vzdalenost_od_okraje+vzdalenost_od_diry)/2)-sirka_materialu)-(tloustka_celicka/2)),(pocet_der1+2)*vzdalenost_der/2,-(vyska-2*zapust-vule_vysky_celicka)/2]) |
- |
|
128 |
rotate(a=[0,0,270]) |
- |
|
129 |
celicko_leve (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky); |
- |
|
130 |
|
27 |
|
131 |
//PLBASE SPODNI |
- |
|
132 |
//------------------------------------------------------------- |
- |
|
133 |
color(barva_plbase) |
- |
|
134 |
//základní plbase bez nožiček |
- |
|
135 |
/* |
- |
|
136 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,-(vyska/2)]) |
- |
|
137 |
rotate(a=[180,0,90]) |
- |
|
138 |
|
- |
|
139 |
|
- |
|
140 |
plbase(pocet_der1+3,pocet_der2+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
- |
|
141 |
*/ |
- |
|
142 |
|
- |
|
143 |
//plbase s nožičkama |
- |
|
144 |
//* |
- |
|
145 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,-((vyska/2))]) |
- |
|
146 |
rotate(a=[180,0,90]) |
- |
|
147 |
plbase_s_nozickama(pocet_der1+3,pocet_der2+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,vyska_nozicky,vyska_hlavy,prumer_hlavy); |
- |
|
148 |
//*/ |
- |
|
149 |
|
- |
|
150 |
//plbase se zápustnými šrouby |
- |
|
151 |
/* |
- |
|
152 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,-(vyska/2)]) |
- |
|
153 |
rotate(a=[180,0,90]) |
- |
|
154 |
|
28 |
|
155 |
plbase_zapustene_srouby(pocet_der1+3,pocet_der2+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_hlavy,prekryti_der,prumer_hlavy); |
- |
|
156 |
*/ |
- |
|
157 |
|
29 |
|
158 |
//PLBASE HORNI |
30 |
//PLBASE HORNI |
159 |
//------------------------------------------------------------- |
31 |
//------------------------------------------------------------- |
160 |
|
32 |
|
161 |
//základní plbase bez nožiček |
- |
|
162 |
|
33 |
|
- |
|
34 |
|
163 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,2* vyska]) |
35 |
translate([plbase_tolerance_horni-0.2,+plbase_tolerance_horni-0.2,vyska_bocnice/2-tloustka_plbase/2]) |
164 |
rotate(a=[0,0,0]) |
36 |
rotate(a=[0,0,0]) |
165 |
{ |
37 |
{ |
166 |
|
38 |
|
167 |
plbase_bez_der_napis(pocet_der2+3,pocet_der1+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,box_jmeno); |
- |
|
168 |
|
- |
|
169 |
} |
- |
|
170 |
|
- |
|
171 |
|
- |
|
172 |
|
- |
|
173 |
|
39 |
|
- |
|
40 |
//plbase_vrchni_kryt(pocet_der1+2,pocet_der2+2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,plbase_tolerance_horni); |
174 |
|
41 |
|
- |
|
42 |
plbase_vrchni_kryt_pro_odecet(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,-0.2,tloustka_plbase); |
- |
|
43 |
} |
175 |
|
44 |
|
176 |
|
45 |
|
177 |
|
46 |
|
178 |
|
47 |
|
179 |
|
48 |
|
180 |
/* |
- |
|
181 |
|
- |
|
182 |
|
- |
|
183 |
//základní plbase bez nožiček |
- |
|
184 |
|
- |
|
185 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,2* vyska]) |
- |
|
186 |
rotate(a=[0,0,0]) |
- |
|
187 |
{ |
- |
|
188 |
|
- |
|
189 |
plbase(pocet_der2+3,pocet_der1+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
- |
|
190 |
translate([ 0, 0, 0]) |
- |
|
191 |
rotate([0,0,0]) |
- |
|
192 |
write(box_jmeno,h=5,t=2, space= 1.1, font = "Letters.dxf",center=true); |
- |
|
193 |
|
- |
|
194 |
|
49 |
|
195 |
} |
- |
|
196 |
//*/ |
- |
|
197 |
//plbase se zapuštěním šroubů |
- |
|
198 |
/* |
- |
|
199 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,(vyska/2)]) |
- |
|
200 |
rotate(a=[0,0,0]) |
- |
|
201 |
|
50 |
|
202 |
plbase_zapustene_srouby(pocet_der2+3,pocet_der1+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_hlavy,prekryti_der,prumer_hlavy); |
- |
|
203 |
*/ |
- |
|
204 |
|
51 |
|
205 |
|
52 |
|
206 |
|
53 |
|