4572 |
jacho |
1 |
use <configuration/bocnice.scad> |
|
|
2 |
|
|
|
3 |
use <configuration/otvory.scad> |
|
|
4 |
use <configuration/plbase.scad> |
|
|
5 |
include <configuration/manufactury_conf.scad> |
|
|
6 |
include <configuration.scad> |
|
|
7 |
include <configuration/otvory_conf.scad> |
|
|
8 |
|
|
|
9 |
upravena_bocnice(); |
|
|
10 |
|
|
|
11 |
//Slouzi pro vytvoreni vlastnich celicek dle potreby |
|
|
12 |
|
|
|
13 |
//Vytvoreni predniho celicka krabicky |
|
|
14 |
//-------------------------------------------------------- |
|
|
15 |
module upravena_bocnice() |
|
|
16 |
{ |
|
|
17 |
difference() { |
|
|
18 |
union() { |
|
|
19 |
bocnice(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice); |
|
|
20 |
|
|
|
21 |
translate([-((pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje)/2-tloustka_bocnice,-vzdalenost_od_okraje-tloustka_bocnice,-(vyska_bocnice/2)]) |
|
|
22 |
rotate(a=[180,0,90]) |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice); |
|
|
26 |
|
|
|
27 |
} |
|
|
28 |
union() { |
|
|
29 |
//Vytvoreni otvorů v přední stěně |
|
|
30 |
//-------------------------------------------------------- |
|
|
31 |
|
|
|
32 |
translate([-((pocet_der2-1)*vzdalenost_der)/2,-vzdalenost_od_okraje-tloustka_bocnice/2,-(vyska_bocnice/2)]) |
|
|
33 |
{ |
|
|
34 |
//složí k posunu otvoru v násobku děr |
|
|
35 |
posun_p1=10; |
|
|
36 |
translate([posun_p1*vzdalenost_der,0,0]) |
|
|
37 |
USBI2C01A(tloustka_bocnice,vzdalenost_der); |
|
|
38 |
|
|
|
39 |
posun_p2=10; |
|
|
40 |
translate([posun_p2*vzdalenost_der,0,0]) |
|
|
41 |
I2CDIFF01A(tloustka_bocnice,vzdalenost_der); |
|
|
42 |
|
|
|
43 |
posun_p3=1.5; |
|
|
44 |
translate([posun_p3*vzdalenost_der,0,0]) |
|
|
45 |
MIC338(tloustka_bocnice,vzdalenost_der,vyska_bocnice); |
|
|
46 |
|
|
|
47 |
} |
|
|
48 |
} |
|
|
49 |
} |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
//Vytvoreni zadniho celicka krabicky |
|
|
53 |
//-------------------------------------------------------- |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
//Vytvoreni leveho celicka krabicky |
|
|
57 |
//-------------------------------------------------------- |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
//Vytvoreni praveho celicka krabicky |
|
|
62 |
//-------------------------------------------------------- |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
} |