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 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
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 //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([10,0,0])
49 MIC338(tloustka_celicka,vyska,zapust,vule_vysky_celicka);
50  
51 }
52 }
53  
54  
55  
56 //Vytvoreni praveho celicka krabicky
57 //--------------------------------------------------------
58 module celicko_prave()
59 {
60 translate([0,0,0])
61 difference() {
62 celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy);
63  
64 }
65 }
66 barva_predni = "cyan";
67 barva_zadni = "red";
68 barva_leve = "green";
69 barva_prave = "yellow";
70  
71 //Zobrazeni vzhledu navrhovanych celicek
72 color(barva_predni)
73 translate([0,-50,0])
74 celicko_predni();
75  
76 color(barva_zadni)
77 translate([0,50,0])
78 rotate(a=[0,0,180])
79 celicko_zadni();
80  
81 color(barva_leve)
82 translate([-60,0,0])
83 rotate(a=[0,0,270])
84 celicko_leve();
85  
86 color(barva_prave)
87 translate([60,0,0])
88 rotate(a=[0,0,90])
89 celicko_prave();
90