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 union() {
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 }
24  
25  
26  
27  
28 //Vytvoreni zadniho celicka krabicky - cervena
29 //--------------------------------------------------------
30 module celicko_zadni()
31 {
32 translate([0,0,0])
33 difference() {
34 celicko (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
35  
36  
37 }
38 }
39  
40  
41 //Vytvoreni leveho celicka krabicky
42 //--------------------------------------------------------
43 module celicko_leve()
44 {
45 translate([0,0,0])
46 difference() {
47 celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
48  
49 posun_od_kraje1=1.5;
50 MIC338(tloustka_celicka,vyska,zapust,vule_vysky_celicka,posun_od_kraje1,vzdalenost_der);
51  
52 posun_od_kraje2=-1.5;
53 MIC338(tloustka_celicka,vyska,zapust,vule_vysky_celicka,posun_od_kraje2,vzdalenost_der);
54  
55 }
56 }
57  
58  
59  
60 //Vytvoreni praveho celicka krabicky
61 //--------------------------------------------------------
62 module celicko_prave()
63 {
64 translate([0,0,0])
65 difference() {
66 celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
67  
68 posun_od_kraje3=0;
69 pocet_der_dane_strany1=pocet_der1+3;
70  
71 I2CDIFF01A(tloustka_celicka,pocet_der_dane_strany1,posun_od_kraje3,vzdalenost_der,vyska_listy);
72  
73 }
74 }
75 barva_predni = "cyan";
76 barva_zadni = "red";
77 barva_leve = "green";
78 barva_prave = "yellow";
79  
80 //Zobrazeni vzhledu navrhovanych celicek
81 color(barva_predni)
82 translate([0,-50,0])
83 celicko_predni();
84  
85 color(barva_zadni)
86 translate([0,50,0])
87 rotate(a=[0,0,180])
88 celicko_zadni();
89  
90 color(barva_leve)
91 translate([-60,0,0])
92 rotate(a=[0,0,270])
93 celicko_leve();
94  
95 color(barva_prave)
96 translate([60,0,0])
97 rotate(a=[0,0,90])
98 celicko_prave();
99