Rev Author Line No. Line
4241 jacho 1 use <configuration/celicko.scad>
2 use <configuration/sloupek.scad>
3 use <configuration/lista.scad>
4246 jacho 4 use <configuration/plbase.scad>
5 use <uravena_celicka.scad>
6 use <configuration/otvory.scad>
4241 jacho 7  
4246 jacho 8 include <configuration/manufactury_conf.scad>
4241 jacho 9 include <configuration.scad>
4246 jacho 10 include <configuration/otvory_conf.scad>
4241 jacho 11  
12 //Slouzi pro vytvoreni vlastnich celicek dle potreby
13  
14 //Vytvoreni predniho celicka krabicky
15 //--------------------------------------------------------
16 module celicko_predni()
17 difference() {
4246 jacho 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);
4241 jacho 21  
4246 jacho 22 otvor_LCD2_16_sloupky(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);
23 }
24  
25 otvor_LCD2_16_diry(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);
4241 jacho 26  
27 }
28  
29  
30  
4246 jacho 31  
4241 jacho 32 //Vytvoreni zadniho celicka krabicky
33 //--------------------------------------------------------
34 module celicko_zadni()
35 {
36 translate([0,0,0])
37 difference() {
38 celicko (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
39  
40 translate([20,0,0])
41 cube(size = [10,10,30], center = true);
42 }
43 }
44  
45  
46 //Vytvoreni leveho celicka krabicky
47 //--------------------------------------------------------
48 module celicko_leve()
49 {
50 translate([0,0,0])
51 difference() {
52 celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
53  
54 translate([20,0,0])
55 cube(size = [10,10,30], center = true);
56 }
57 }
58  
59  
60  
61 //Vytvoreni praveho celicka krabicky
62 //--------------------------------------------------------
63 module celicko_prave()
64 {
65 translate([0,0,0])
66 difference() {
67 celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
68  
69 translate([20,0,0])
70 cube(size = [10,10,30], center = true);
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