4641 |
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_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice); |
|
|
19 |
|
|
|
20 |
translate([-((pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje)/2-tloustka_bocnice,-vzdalenost_od_okraje-tloustka_bocnice,-(vyska_bocnice/2)]) |
|
|
21 |
rotate(a=[180,0,90]) |
|
|
22 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice); |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
translate([25,10,-vyska_bocnice/2+D05_vyska_drzaku_senzoru/2]) |
|
|
26 |
rotate ([0,0,90]) |
|
|
27 |
difference() |
|
|
28 |
{ |
|
|
29 |
cube([10.16+2*S01_sila_materialu,3+2*S01_sila_materialu,D05_vyska_drzaku_senzoru],true); |
|
|
30 |
|
|
|
31 |
cube([10.16,3,D05_vyska_drzaku_senzoru+0.01],true); |
|
|
32 |
|
|
|
33 |
translate([0,5,D05_vyska_drzaku_senzoru/2-3.08]) |
|
|
34 |
rotate ([90,0,0]) |
|
|
35 |
cylinder (h = 30, r=(3.3/2), $fn=100); |
|
|
36 |
} |
|
|
37 |
} |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
//Vytvoreni otvorů v přední stěně |
|
|
41 |
//-------------------------------------------------------- |
|
|
42 |
|
|
|
43 |
translate([-((pocet_der2-1)*vzdalenost_der)/2,-vzdalenost_od_okraje-tloustka_bocnice/2,-(vyska_bocnice/2)]) |
|
|
44 |
{ |
|
|
45 |
|
|
|
46 |
} |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
//Vytvoreni zadniho celicka krabicky |
|
|
51 |
//-------------------------------------------------------- |
|
|
52 |
translate([((pocet_der2-1)*vzdalenost_der)/2,(pocet_der1-1)*vzdalenost_der+vzdalenost_od_okraje+tloustka_bocnice/2,-(vyska_bocnice/2)]) |
|
|
53 |
{ |
|
|
54 |
} |
|
|
55 |
|
|
|
56 |
//Vytvoreni leveho celicka krabicky |
|
|
57 |
//-------------------------------------------------------- |
|
|
58 |
|
|
|
59 |
translate([-((pocet_der2-1)*vzdalenost_der)/2-vzdalenost_od_okraje-tloustka_bocnice/2,(pocet_der1-1)*vzdalenost_der,-(vyska_bocnice/2)]) |
|
|
60 |
{ |
|
|
61 |
|
|
|
62 |
} |
|
|
63 |
|
|
|
64 |
//Vytvoreni praveho celicka krabicky |
|
|
65 |
//-------------------------------------------------------- |
|
|
66 |
translate([+((pocet_der2-1)*vzdalenost_der)/2+vzdalenost_od_okraje+tloustka_bocnice/2,0,-(vyska_bocnice/2)]) |
|
|
67 |
{ |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
} |
|
|
71 |
} |
|
|
72 |
} |
|
|
73 |
|