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