Line 1... |
Line 1... |
1 |
use <src/sloupek.scad> |
1 |
use <src/sloupek.scad> |
2 |
use <src/plbase.scad> |
2 |
use <src/plbase.scad> |
3 |
use <src/bocnice.scad> |
3 |
use <src/bocnice.scad> |
4 |
use <src/dno.scad> |
4 |
use <src/dno.scad> |
5 |
use <src/spodni_kryt.scad> |
5 |
use <src/spodni_kryt.scad> |
6 |
use <src/otvory.scad> |
6 |
use <src/otvory.scad> |
7 |
use <src/text/Write.scad> |
7 |
use <src/text/Write.scad> |
8 |
use <upravena_bocnice.scad> |
8 |
use <upravena_bocnice.scad> |
9 |
|
9 |
|
10 |
include <src/manufactury_conf.scad> |
10 |
include <src/manufactury_conf.scad> |
11 |
include <configuration.scad> |
11 |
include <configuration.scad> |
12 |
include <src/otvory_conf.scad> |
12 |
include <src/otvory_conf.scad> |
13 |
|
13 |
|
14 |
|
14 |
|
15 |
barva_dno_bocnice = "cyan"; |
15 |
barva_dno_bocnice = "cyan"; |
16 |
barva_spodni_kryt = "green"; |
16 |
barva_spodni_kryt = "green"; |
17 |
barva_plbase_horni = "yellow"; |
17 |
barva_plbase_horni = "yellow"; |
18 |
|
18 |
|
19 |
posuv_dilu=0; //pro složeni krabičky zadat 0 pro rozebrání zdat 10 |
19 |
posuv_dilu=0; //pro složeni krabičky zadat 0 pro rozebrání zdat 10 |
20 |
|
20 |
|
21 |
//BOCNICE SE DNEM |
21 |
//BOCNICE SE DNEM |
22 |
//------------------------------------------------------------- |
22 |
//------------------------------------------------------------- |
- |
|
23 |
|
- |
|
24 |
|
- |
|
25 |
translate([0,0,-2*posuv_dilu]) |
- |
|
26 |
translate([-((pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje2)/2-tloustka_bocnice,-vzdalenost_od_okraje1-tloustka_bocnice,-(vyska_bocnice/2)-tloustka_plbase]) |
- |
|
27 |
rotate(a=[180,0,90]) |
- |
|
28 |
|
- |
|
29 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje1,vzdalenost_od_okraje2,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice); |
23 |
|
30 |
|
24 |
|
31 |
|
25 |
color(barva_dno_bocnice) |
32 |
color(barva_dno_bocnice) |
26 |
upravena_bocnice(); |
33 |
upravena_bocnice(); |
27 |
|
34 |
|
28 |
//PLBASE HORNI |
35 |
//PLBASE HORNI |
29 |
//------------------------------------------------------------- |
36 |
//------------------------------------------------------------- |
30 |
translate([0,0,5*posuv_dilu]) |
37 |
translate([0,0,5*posuv_dilu]) |
31 |
color(barva_plbase_horni) |
38 |
color(barva_plbase_horni) |
32 |
translate([0,0,vyska_bocnice/2-tloustka_plbase/2]) |
39 |
translate([0,0,vyska_bocnice/2-tloustka_plbase/2]) |
33 |
rotate(a=[0,0,0]) |
40 |
rotate(a=[0,0,0]) |
34 |
{ |
41 |
{ |
35 |
|
42 |
|
36 |
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,plbase_tolerance_horni,tloustka_plbase); |
43 |
plbase_vrchni_kryt_pro_odecet(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje1,vzdalenost_od_okraje2,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,plbase_tolerance_horni,tloustka_plbase); |
37 |
} |
44 |
} |
38 |
|
45 |
|
39 |
//SPODNÍ KRYT |
46 |
//SPODNÍ KRYT |
40 |
//------------------------------------------------------------- |
47 |
//------------------------------------------------------------- |
41 |
/* |
48 |
/* |
42 |
translate([0,0,-5*posuv_dilu]) |
49 |
translate([0,0,-5*posuv_dilu]) |
43 |
color(barva_spodni_kryt) |
50 |
color(barva_spodni_kryt) |
44 |
translate([0,0,-vyska_bocnice/2-2*tloustka_plbase]) |
51 |
translate([0,0,-vyska_bocnice/2-2*tloustka_plbase]) |
45 |
spodni_kryt(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice); |
52 |
spodni_kryt(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice); |
46 |
|
53 |
|
47 |
*/ |
54 |
*/ |
48 |
|
55 |
|
49 |
|
56 |
|
50 |
|
57 |
|
51 |
|
58 |
|
52 |
translate([0,0,-5*posuv_dilu]) |
59 |
translate([0,0,-5*posuv_dilu]) |
53 |
color(barva_spodni_kryt) |
60 |
color(barva_spodni_kryt) |
54 |
translate([0,0,-tloustka_plbase-dno_sila_materialu]) |
61 |
translate([0,0,-tloustka_plbase-dno_sila_materialu]) |
55 |
dno(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice); |
62 |
dno(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje1,vzdalenost_od_okraje2,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice); |
56 |
|
63 |
|
57 |
|
64 |
|
58 |
|
65 |
|