Rev Author Line No. Line
4421 jacho 1 use <configuration/celicko.scad>
2 use <configuration/sloupek.scad>
3 use <configuration/lista.scad>
4 use <configuration/plbase.scad>
5 use <uravena_celicka.scad>
6 use <configuration/otvory.scad>
7  
8 include <configuration/manufactury_conf.scad>
9 include <configuration.scad>
10 include <configuration/otvory_conf.scad>
11  
12 //Slouzi pro vytvoreni vlastnich celicek dle potreby
13  
14 //Vytvoreni predniho celicka krabicky
15 //--------------------------------------------------------
16 module celicko_predni()
17 difference() {
18 difference() {
19  
20 celicko (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy,vzdalenost_der_x,vzdalenost_der_y,prumer_otvoru,prumer_sloupku,ramecek_x,ramecek_y,ramecek_vyska);
21  
22  
23 pocet_der_dane_strany=pocet_der2+3;
24 posun_od_kraje1=4;
25 USBI2C01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje1,vzdalenost_der,vyska_listy);
26  
27 pocet_der_dane_strany=pocet_der2+3;
28 posun_od_kraje=7;
29 UNIPOWER02A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy);
30  
31 }
32 }
33  
34  
35  
36 //Vytvoreni zadniho celicka krabicky
37 //--------------------------------------------------------
38 module celicko_zadni()
39 {
40 translate([0,0,0])
41 difference() {
42 celicko (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
43  
44 pocet_der_dane_strany=pocet_der2+3;
45 posun_od_kraje2=7;
46  
47 I2CDIFF01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje2,vzdalenost_der,vyska_listy);
48  
49  
50 }
51 }
52  
53  
54 //Vytvoreni leveho celicka krabicky
55 //--------------------------------------------------------
56 module celicko_leve()
57 {
58 translate([0,0,0])
59 difference() {
60 celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
61 }
62 }
63  
64  
65  
66 //Vytvoreni praveho celicka krabicky
67 //--------------------------------------------------------
68 module celicko_prave()
69 {
70 translate([0,0,0])
71 difference() {
72 celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
73  
74 }
75 }
76 barva_predni = "cyan";
77 barva_zadni = "red";
78 barva_leve = "green";
79 barva_prave = "yellow";
80  
81 //Zobrazeni vzhledu navrhovanych celicek
82 color(barva_predni)
83 translate([0,-50,0])
84 celicko_predni();
85  
86 color(barva_zadni)
87 translate([0,50,0])
88 rotate(a=[0,0,180])
89 celicko_zadni();
90  
91 color(barva_leve)
92 translate([-60,0,0])
93 rotate(a=[0,0,270])
94 celicko_leve();
95  
96 color(barva_prave)
97 translate([60,0,0])
98 rotate(a=[0,0,90])
99 celicko_prave();
100