Rev Author Line No. Line
4298 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=10;
24 posun_od_kraje1=1;
25 USBI2C01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje1,vzdalenost_der,vyska_listy);
26  
27 pocet_der_dane_strany=10;
28 posun_od_kraje=4;
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 translate([0,0,0])
45 MIC338(tloustka_celicka,vyska,zapust,vule_vysky_celicka);
46  
47 }
48 }
49  
50  
51 //Vytvoreni leveho celicka krabicky
52 //--------------------------------------------------------
53 module celicko_leve()
54 {
55 translate([0,0,0])
56 difference() {
57 celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
58 }
59 }
60  
61  
62  
63 //Vytvoreni praveho celicka krabicky
64 //--------------------------------------------------------
65 module celicko_prave()
66 {
67 translate([0,0,0])
68 difference() {
69 celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
70  
71 }
72 }
73 barva_predni = "cyan";
74 barva_zadni = "red";
75 barva_leve = "green";
76 barva_prave = "yellow";
77  
78 //Zobrazeni vzhledu navrhovanych celicek
79 color(barva_predni)
80 translate([0,-50,0])
81 celicko_predni();
82  
83 color(barva_zadni)
84 translate([0,50,0])
85 rotate(a=[0,0,180])
86 celicko_zadni();
87  
88 color(barva_leve)
89 translate([-60,0,0])
90 rotate(a=[0,0,270])
91 celicko_leve();
92  
93 color(barva_prave)
94 translate([60,0,0])
95 rotate(a=[0,0,90])
96 celicko_prave();
97