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