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 |
|
|
|
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 |
pocet_der_dane_strany=15; |
|
|
23 |
posun_od_kraje1=1; |
|
|
24 |
|
|
|
25 |
RS232SINGLE01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje1,vzdalenost_der,vyska_listy); |
|
|
26 |
|
|
|
27 |
pocet_der_dane_strany=15; |
|
|
28 |
posun_od_kraje=9; |
|
|
29 |
UNIPOWER02A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
|
|
30 |
|
|
|
31 |
} |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
//Vytvoreni zadniho celicka krabicky |
|
|
37 |
//-------------------------------------------------------- |
|
|
38 |
module celicko_zadni() |
|
|
39 |
{ |
|
|
40 |
translate([0,0,0]) |
|
|
41 |
difference() { |
|
|
42 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
|
|
43 |
|
|
|
44 |
MIC338(tloustka_celicka,vyska,zapust,vule_vysky_celicka); |
|
|
45 |
} |
|
|
46 |
} |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
//Vytvoreni leveho celicka krabicky |
|
|
50 |
//-------------------------------------------------------- |
|
|
51 |
module celicko_leve() |
|
|
52 |
{ |
|
|
53 |
translate([0,0,0]) |
|
|
54 |
difference() { |
|
|
55 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
|
|
56 |
|
|
|
57 |
} |
|
|
58 |
} |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
//Vytvoreni praveho celicka krabicky |
|
|
63 |
//-------------------------------------------------------- |
|
|
64 |
module celicko_prave() |
|
|
65 |
{ |
|
|
66 |
translate([0,0,0]) |
|
|
67 |
difference() { |
|
|
68 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
|
|
69 |
|
|
|
70 |
|
|
|
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 |
|