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