Line 1... |
Line 1... |
1 |
use <text/Write.scad> |
1 |
use <text/Write.scad> |
2 |
include <manufactury_conf.scad> |
2 |
include <manufactury_conf.scad> |
3 |
include <../configuration.scad> |
3 |
include <../configuration.scad> |
4 |
/* |
4 |
/* |
5 |
pocet_der1=5; |
5 |
pocet_der1=5; |
6 |
pocet_der2=3; |
6 |
pocet_der2=3; |
7 |
radidus_hrany=5; |
7 |
radidus_hrany=5; |
8 |
vzdalenost_der=10.16; |
8 |
vzdalenost_der=10.16; |
9 |
vzdalenost_od_okraje=8.8; |
9 |
vzdalenost_od_okraje=8.8; |
10 |
prumer_sroubu=3.3; |
10 |
prumer_sroubu=3.3; |
11 |
|
11 |
|
12 |
tloustka_plbase=2; |
12 |
tloustka_plbase=2; |
13 |
prekryti_der=0.3; |
13 |
prekryti_der=0.3; |
14 |
|
14 |
|
15 |
vyska_nozicky=5; |
15 |
vyska_nozicky=5; |
16 |
|
16 |
|
17 |
vyska_hlavy = 3.5; |
17 |
vyska_hlavy = 3.5; |
18 |
prumer_hlavy=6; |
18 |
prumer_hlavy=6; |
19 |
*/ |
19 |
*/ |
20 |
|
20 |
|
21 |
//PLBASE ZAKLADNI |
21 |
//PLBASE ZAKLADNI |
22 |
//------------------------------------------------------------ |
22 |
//------------------------------------------------------------ |
23 |
module plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice){ |
23 |
module plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje1,vzdalenost_od_okraje2,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice){ |
24 |
|
24 |
|
25 |
difference () { |
25 |
difference () { |
26 |
//union () { |
26 |
//union () { |
27 |
translate([radidus_hrany,radidus_hrany,0]) |
27 |
translate([radidus_hrany,radidus_hrany,0]) |
28 |
minkowski() |
28 |
minkowski() |
29 |
{ |
29 |
{ |
30 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,tloustka_plbase]); // base plastics brick |
30 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje1-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje2-2*radidus_hrany+2*tloustka_bocnice,tloustka_plbase]); // base plastics brick |
31 |
cylinder(r=radidus_hrany,h=0.1); |
31 |
cylinder(r=radidus_hrany,h=0.1); |
32 |
} |
32 |
} |
33 |
|
33 |
|
34 |
|
34 |
|
35 |
for (i = [0:1:pocet_der1-1]) { |
35 |
for (i = [0:1:pocet_der1-1]) { |
36 |
for (a = [0:1:pocet_der2-1]) { |
36 |
for (a = [0:1:pocet_der2-1]) { |
37 |
|
37 |
|
38 |
translate([vzdalenost_od_okraje+vzdalenost_der*i+tloustka_bocnice,vzdalenost_od_okraje+vzdalenost_der*a+tloustka_bocnice, (tloustka_plbase-prekryti_der)/2]) // center top screw |
38 |
translate([vzdalenost_od_okraje1+vzdalenost_der*i+tloustka_bocnice,vzdalenost_od_okraje2+vzdalenost_der*a+tloustka_bocnice, (tloustka_plbase-prekryti_der)/2]) // center top screw |
39 |
cylinder(((tloustka_plbase-prekryti_der)), d=prumer_sroubu, center=true); |
39 |
cylinder(((tloustka_plbase-prekryti_der)), d=prumer_sroubu, center=true); |
40 |
} |
40 |
} |
41 |
} |
41 |
} |
42 |
|
42 |
|
43 |
|
43 |
|
44 |
} |
44 |
} |
45 |
} |
45 |
} |
46 |
|
46 |
|
47 |
|
47 |
|
48 |
|
48 |
|
49 |
//MODEL NOZICKY PRO PLBASE |
49 |
//MODEL NOZICKY PRO PLBASE |
50 |
//----------------------------------------------------------- |
50 |
//----------------------------------------------------------- |
51 |
//průmer nozicky je roven vzdalenost_der |
51 |
//průmer nozicky je roven vzdalenost_der |
52 |
module nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy) |
52 |
module nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy) |
53 |
{ |
53 |
{ |
54 |
difference () { |
54 |
difference () { |
55 |
translate([0,0,-vyska_nozicky/2]) |
55 |
translate([0,0,-vyska_nozicky/2]) |
56 |
cylinder((vyska_nozicky), d=vzdalenost_der, center=true); |
56 |
cylinder((vyska_nozicky), d=vzdalenost_der, center=true); |
57 |
translate([0,0,-(vyska_nozicky-vyska_hlavy/2)]) |
57 |
translate([0,0,-(vyska_nozicky-vyska_hlavy/2)]) |
58 |
cylinder((vyska_hlavy), d=prumer_hlavy, center=true); |
58 |
cylinder((vyska_hlavy), d=prumer_hlavy, center=true); |
59 |
translate([0,0,-vyska_nozicky/2]) |
59 |
translate([0,0,-vyska_nozicky/2]) |
60 |
cylinder((vyska_nozicky), d=prumer_sroubu, center=true); |
60 |
cylinder((vyska_nozicky), d=prumer_sroubu, center=true); |
61 |
} |
61 |
} |
62 |
} |
62 |
} |
63 |
|
63 |
|
64 |
|
64 |
|
65 |
|
65 |
|
66 |
//PLBASE S NOZICKAMA |
66 |
//PLBASE S NOZICKAMA |
67 |
//----------------------------------------------------------- |
67 |
//----------------------------------------------------------- |
68 |
module plbase_s_nozickama(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,vyska_nozicky,vyska_hlavy,prumer_hlavy){ |
68 |
module plbase_s_nozickama(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,vyska_nozicky,vyska_hlavy,prumer_hlavy){ |
69 |
|
69 |
|
70 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
70 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
71 |
|
71 |
|
72 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje, (tloustka_plbase)]) // center top screw |
72 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje, (tloustka_plbase)]) // center top screw |
73 |
rotate(a=[180,0,0]) |
73 |
rotate(a=[180,0,0]) |
74 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
74 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
75 |
|
75 |
|
76 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje, tloustka_plbase]) // center top screw |
76 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje, tloustka_plbase]) // center top screw |
77 |
rotate(a=[180,0,0]) |
77 |
rotate(a=[180,0,0]) |
78 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
78 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
79 |
|
79 |
|
80 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase)]) // center top screw |
80 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase)]) // center top screw |
81 |
rotate(a=[180,0,0]) |
81 |
rotate(a=[180,0,0]) |
82 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
82 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
83 |
|
83 |
|
84 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase)]) // center top screw |
84 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase)]) // center top screw |
85 |
rotate(a=[180,0,0]) |
85 |
rotate(a=[180,0,0]) |
86 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
86 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
87 |
|
87 |
|
88 |
|
88 |
|
89 |
} |
89 |
} |
90 |
|
90 |
|
91 |
|
91 |
|
92 |
|
92 |
|
93 |
//PLBASE SE ZAPUSTENIM SROUBU |
93 |
//PLBASE SE ZAPUSTENIM SROUBU |
94 |
//------------------------------------------------------ |
94 |
//------------------------------------------------------ |
95 |
module plbase_zapustene_srouby(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_hlavy,prekryti_der,prumer_hlavy){ |
95 |
module plbase_zapustene_srouby(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_hlavy,prekryti_der,prumer_hlavy){ |
96 |
difference () { |
96 |
difference () { |
97 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,(vyska_hlavy+1.5),prekryti_der); |
97 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,(vyska_hlavy+1.5),prekryti_der); |
98 |
|
98 |
|
99 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje, 1.5+(vyska_hlavy/2)]) // center top screw |
99 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje, 1.5+(vyska_hlavy/2)]) // center top screw |
100 |
cylinder(((vyska_hlavy+0.5)), d=prumer_hlavy, center=true); |
100 |
cylinder(((vyska_hlavy+0.5)), d=prumer_hlavy, center=true); |
101 |
|
101 |
|
102 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje, 1.5+(vyska_hlavy/2)]) // center top screw |
102 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje, 1.5+(vyska_hlavy/2)]) // center top screw |
103 |
cylinder(((vyska_hlavy+0.5)), d=prumer_hlavy, center=true); |
103 |
cylinder(((vyska_hlavy+0.5)), d=prumer_hlavy, center=true); |
104 |
|
104 |
|
105 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, 1.5+(vyska_hlavy/2)]) // center top screw |
105 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, 1.5+(vyska_hlavy/2)]) // center top screw |
106 |
cylinder(((vyska_hlavy+0.5)), d=prumer_hlavy, center=true); |
106 |
cylinder(((vyska_hlavy+0.5)), d=prumer_hlavy, center=true); |
107 |
|
107 |
|
108 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, 1.5+(vyska_hlavy/2)]) // center top screw |
108 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, 1.5+(vyska_hlavy/2)]) // center top screw |
109 |
cylinder(((vyska_hlavy+0.5)), d=prumer_hlavy, center=true); |
109 |
cylinder(((vyska_hlavy+0.5)), d=prumer_hlavy, center=true); |
110 |
|
110 |
|
111 |
} |
111 |
} |
112 |
} |
112 |
} |
113 |
|
113 |
|
114 |
|
114 |
|
115 |
//PLBASE S NOZICKAMA polovicni pro tisk |
115 |
//PLBASE S NOZICKAMA polovicni pro tisk |
116 |
//----------------------------------------------------------- |
116 |
//----------------------------------------------------------- |
117 |
module plbase_s_nozickama_polovicni(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,vyska_nozicky,vyska_hlavy,prumer_hlavy){ |
117 |
module plbase_s_nozickama_polovicni(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,vyska_nozicky,vyska_hlavy,prumer_hlavy){ |
118 |
|
118 |
|
119 |
difference() |
119 |
difference() |
120 |
{ |
120 |
{ |
121 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
121 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
122 |
|
122 |
|
123 |
|
123 |
|
124 |
translate([-1,-1, -1]) |
124 |
translate([-1,-1, -1]) |
125 |
|
125 |
|
126 |
cube([(pocet_der1+1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany,1+((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2,tloustka_plbase+15]); |
126 |
cube([(pocet_der1+1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany,1+((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2,tloustka_plbase+15]); |
127 |
} |
127 |
} |
128 |
|
128 |
|
129 |
|
129 |
|
130 |
|
130 |
|
131 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase)]) // center top screw |
131 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase)]) // center top screw |
132 |
rotate(a=[180,0,0]) |
132 |
rotate(a=[180,0,0]) |
133 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
133 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
134 |
|
134 |
|
135 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase)]) // center top screw |
135 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase)]) // center top screw |
136 |
rotate(a=[180,0,0]) |
136 |
rotate(a=[180,0,0]) |
137 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
137 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
138 |
|
138 |
|
139 |
|
139 |
|
140 |
|
140 |
|
141 |
|
141 |
|
142 |
} |
142 |
} |
143 |
|
143 |
|
144 |
//PLBASE polovicni pro tisk |
144 |
//PLBASE polovicni pro tisk |
145 |
//----------------------------------------------------------- |
145 |
//----------------------------------------------------------- |
146 |
module plbase_polovicni(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,vyska_nozicky,vyska_hlavy,prumer_hlavy){ |
146 |
module plbase_polovicni(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,vyska_nozicky,vyska_hlavy,prumer_hlavy){ |
147 |
|
147 |
|
148 |
difference() |
148 |
difference() |
149 |
{ |
149 |
{ |
150 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
150 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
151 |
|
151 |
|
152 |
|
152 |
|
153 |
translate([-1,-1, -1]) |
153 |
translate([-1,-1, -1]) |
154 |
|
154 |
|
155 |
cube([(pocet_der1+1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany,1+((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2,tloustka_plbase+15]); |
155 |
cube([(pocet_der1+1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany,1+((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2,tloustka_plbase+15]); |
156 |
} |
156 |
} |
157 |
|
157 |
|
158 |
|
158 |
|
159 |
} |
159 |
} |
160 |
|
160 |
|
161 |
|
161 |
|
162 |
//PLBASE ZAKLADNI - bez der s napisem produktu |
162 |
//PLBASE ZAKLADNI - bez der s napisem produktu |
163 |
//------------------------------------------------------------ |
163 |
//------------------------------------------------------------ |
164 |
module plbase_bez_der_napis(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,box_jmeno,tloustka_bocnice){ |
164 |
module plbase_bez_der_napis(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje1,vzdalenost_od_okraje2,prumer_sroubu,tloustka_plbase,prekryti_der,box_jmeno,tloustka_bocnice){ |
165 |
|
165 |
|
166 |
|
166 |
|
167 |
|
167 |
|
168 |
difference () { |
168 |
difference () { |
169 |
//union () { |
169 |
//union () { |
170 |
translate([radidus_hrany,radidus_hrany,0]) |
170 |
translate([radidus_hrany,radidus_hrany,0]) |
171 |
minkowski() |
171 |
minkowski() |
172 |
{ |
172 |
{ |
173 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,tloustka_plbase]); // base plastics brick |
173 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje1-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje2-2*radidus_hrany+2*tloustka_bocnice,tloustka_plbase]); // base plastics brick |
174 |
cylinder(r=radidus_hrany,h=0.1); |
174 |
cylinder(r=radidus_hrany,h=0.1); |
175 |
} |
175 |
} |
176 |
translate([radidus_hrany,radidus_hrany,0]) |
176 |
translate([radidus_hrany,radidus_hrany,0]) |
177 |
translate([ ((pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2+tloustka_bocnice, ((pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2+tloustka_bocnice, tloustka_plbase/2+1]) |
177 |
translate([ ((pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje1-2*radidus_hrany)/2+tloustka_bocnice, ((pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje2-2*radidus_hrany)/2+tloustka_bocnice, tloustka_plbase/2+1]) |
178 |
rotate([0,0,0]) |
178 |
rotate([0,0,0]) |
179 |
write(box_jmeno,h=10,t=tloustka_plbase-1, space= 1.1, font = "Letters.dxf",center=true); |
179 |
write(box_jmeno,h=10,t=tloustka_plbase-1, space= 1.1, font = "Letters.dxf",center=true); |
180 |
|
180 |
|
181 |
|
181 |
|
182 |
translate([vzdalenost_od_okraje+tloustka_bocnice,vzdalenost_od_okraje+tloustka_bocnice, (tloustka_plbase/2)]) // center top screw |
182 |
translate([vzdalenost_od_okraje1+tloustka_bocnice,vzdalenost_od_okraje2+tloustka_bocnice, (tloustka_plbase/2)]) // center top screw |
183 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
183 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
184 |
|
184 |
|
185 |
translate([vzdalenost_od_okraje+tloustka_bocnice+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+tloustka_bocnice, (tloustka_plbase/2)]) // center top screw |
185 |
translate([vzdalenost_od_okraje1+tloustka_bocnice+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje2+tloustka_bocnice, (tloustka_plbase/2)]) // center top screw |
186 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
186 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
187 |
|
187 |
|
188 |
translate([vzdalenost_od_okraje+tloustka_bocnice+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+tloustka_bocnice+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase/2)]) // center top screw |
188 |
translate([vzdalenost_od_okraje1+tloustka_bocnice+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje2+tloustka_bocnice+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase/2)]) // center top screw |
189 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
189 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
190 |
|
190 |
|
191 |
translate([vzdalenost_od_okraje+tloustka_bocnice,vzdalenost_od_okraje+tloustka_bocnice+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase/2)]) // center top screw |
191 |
translate([vzdalenost_od_okraje1+tloustka_bocnice,vzdalenost_od_okraje2+tloustka_bocnice+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase/2)]) // center top screw |
192 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
192 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
193 |
|
193 |
|
194 |
|
194 |
|
195 |
|
195 |
|
196 |
|
196 |
|
197 |
|
197 |
|
198 |
|
198 |
|
199 |
} |
199 |
} |
200 |
} |
200 |
} |
201 |
|
201 |
|
202 |
|
202 |
|
203 |
//PLBASE ZAKLADNI - bez der |
203 |
//PLBASE ZAKLADNI - bez der |
204 |
//------------------------------------------------------------ |
204 |
//------------------------------------------------------------ |
205 |
module plbase_bez_der(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice){ |
205 |
module plbase_bez_der(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,tloustka_bocnice){ |
206 |
|
206 |
|
207 |
|
207 |
|
208 |
|
208 |
|
209 |
difference () { |
209 |
difference () { |
210 |
//union () { |
210 |
//union () { |
211 |
translate([radidus_hrany,radidus_hrany,0]) |
211 |
translate([radidus_hrany,radidus_hrany,0]) |
212 |
minkowski() |
212 |
minkowski() |
213 |
{ |
213 |
{ |
214 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,tloustka_plbase]); // base plastics brick |
214 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,tloustka_plbase]); // base plastics brick |
215 |
cylinder(r=radidus_hrany,h=0.1); |
215 |
cylinder(r=radidus_hrany,h=0.1); |
216 |
} |
216 |
} |
217 |
|
217 |
|
218 |
|
218 |
|
219 |
|
219 |
|
220 |
|
220 |
|
221 |
|
221 |
|
222 |
|
222 |
|
223 |
|
223 |
|
224 |
|
224 |
|
225 |
|
225 |
|
226 |
} |
226 |
} |
227 |
} |
227 |
} |
228 |
|
228 |
|
229 |
|
229 |
|
230 |
//PLbase vrchní |
230 |
//PLbase vrchní |
231 |
//------------------------------------------------------------ |
231 |
//------------------------------------------------------------ |
232 |
|
232 |
|
233 |
|
233 |
|
234 |
module plbase_vrchni_kryt(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,plbase_tolerance_horni){ |
234 |
module plbase_vrchni_kryt(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,plbase_tolerance_horni){ |
235 |
|
235 |
|
236 |
difference () { |
236 |
difference () { |
237 |
// translate([0,((pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice)/2,0]) |
237 |
// translate([0,((pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice)/2,0]) |
238 |
cube([(pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice,(pocet_der1+2)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice,tloustka_plbase],true); |
238 |
cube([(pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice,(pocet_der1+2)*vzdalenost_der+2*vzdalenost_od_okraje+2*tloustka_bocnice,tloustka_plbase],true); |
239 |
|
239 |
|
240 |
|
240 |
|
241 |
union() |
241 |
union() |
242 |
{ |
242 |
{ |
243 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
243 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
244 |
rotate(a=[180,0,90]) |
244 |
rotate(a=[180,0,90]) |
245 |
translate([radidus_hrany,radidus_hrany,0]) |
245 |
translate([radidus_hrany,radidus_hrany,0]) |
246 |
translate([-tloustka_bocnice,-tloustka_bocnice,0]) |
246 |
translate([-tloustka_bocnice,-tloustka_bocnice,0]) |
247 |
|
247 |
|
248 |
//obvod |
248 |
//obvod |
249 |
difference () { |
249 |
difference () { |
250 |
|
250 |
|
251 |
|
251 |
|
252 |
minkowski() |
252 |
minkowski() |
253 |
{ |
253 |
{ |
254 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,vyska_bocnice+tloustka_plbase]); // base plastics brick |
254 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,vyska_bocnice+tloustka_plbase]); // base plastics brick |
255 |
cylinder(r=radidus_hrany,h=0.1); |
255 |
cylinder(r=radidus_hrany,h=0.1); |
256 |
} |
256 |
} |
257 |
translate([tloustka_bocnice,tloustka_bocnice,-0.1]) |
257 |
translate([tloustka_bocnice,tloustka_bocnice,-0.1]) |
258 |
minkowski() |
258 |
minkowski() |
259 |
{ |
259 |
{ |
260 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany-2*plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany-2*plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.2]); // base plastics brick |
260 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany-2*plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany-2*plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.2]); // base plastics brick |
261 |
cylinder(r=radidus_hrany,h=0.1); |
261 |
cylinder(r=radidus_hrany,h=0.1); |
262 |
} |
262 |
} |
263 |
|
263 |
|
264 |
|
264 |
|
265 |
|
265 |
|
266 |
|
266 |
|
267 |
translate([-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-0.2]) |
267 |
translate([-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-0.2]) |
268 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
268 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
269 |
|
269 |
|
270 |
|
270 |
|
271 |
translate([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-0.2]) |
271 |
translate([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,-0.2]) |
272 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
272 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
273 |
|
273 |
|
274 |
|
274 |
|
275 |
translate([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-0.2]) |
275 |
translate([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-0.2]) |
276 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
276 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
277 |
|
277 |
|
278 |
|
278 |
|
279 |
translate([-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-0.2]) |
279 |
translate([-radidus_hrany-tloustka_bocnice-3*plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-radidus_hrany+2*tloustka_bocnice-vzdalenost_der/2,-0.2]) |
280 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
280 |
cube([vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vzdalenost_der/2+tloustka_bocnice+plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); |
281 |
|
281 |
|
282 |
|
282 |
|
283 |
|
283 |
|
284 |
} |
284 |
} |
285 |
|
285 |
|
286 |
|
286 |
|
287 |
|
287 |
|
288 |
|
288 |
|
289 |
//pro vyboceni sloupku |
289 |
//pro vyboceni sloupku |
290 |
|
290 |
|
291 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
291 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,vyska_bocnice/2]) |
292 |
rotate(a=[180,0,90]) |
292 |
rotate(a=[180,0,90]) |
293 |
translate([radidus_hrany,radidus_hrany,0]) |
293 |
translate([radidus_hrany,radidus_hrany,0]) |
294 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
294 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
295 |
difference () { |
295 |
difference () { |
296 |
|
296 |
|
297 |
translate([-(5)*vzdalenost_der/2,-(5)*vzdalenost_der/2,0]) |
297 |
translate([-(5)*vzdalenost_der/2,-(5)*vzdalenost_der/2,0]) |
298 |
minkowski() |
298 |
minkowski() |
299 |
{ |
299 |
{ |
300 |
cube([(pocet_der1+5)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+4*tloustka_bocnice,(pocet_der2+5)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+4*tloustka_bocnice,vyska_bocnice+tloustka_plbase]); // base plastics brick |
300 |
cube([(pocet_der1+5)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+4*tloustka_bocnice,(pocet_der2+5)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+4*tloustka_bocnice,vyska_bocnice+tloustka_plbase]); // base plastics brick |
301 |
cylinder(r=radidus_hrany,h=0.1); |
301 |
cylinder(r=radidus_hrany,h=0.1); |
302 |
} |
302 |
} |
303 |
translate([tloustka_bocnice,tloustka_bocnice,-0.2]) |
303 |
translate([tloustka_bocnice,tloustka_bocnice,-0.2]) |
304 |
minkowski() |
304 |
minkowski() |
305 |
{ |
305 |
{ |
306 |
|
306 |
|
307 |
|
307 |
|
308 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); // base plastics brick |
308 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni,vyska_bocnice+tloustka_plbase+0.4]); // base plastics brick |
309 |
cylinder(r=radidus_hrany,h=0.1); |
309 |
cylinder(r=radidus_hrany,h=0.1); |
310 |
} |
310 |
} |
311 |
|
311 |
|
312 |
|
312 |
|
313 |
|
313 |
|
314 |
|
314 |
|
315 |
|
315 |
|
316 |
} |
316 |
} |
317 |
} |
317 |
} |
318 |
//SLOUPKY |
318 |
//SLOUPKY |
319 |
//------------------------------------------------------------ |
319 |
//------------------------------------------------------------ |
320 |
//sloupek 1 |
320 |
//sloupek 1 |
321 |
|
321 |
|
322 |
translate([(-(pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
322 |
translate([(-(pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
323 |
|
323 |
|
324 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
324 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
325 |
|
325 |
|
326 |
//sloupek 2 |
326 |
//sloupek 2 |
327 |
|
327 |
|
328 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
328 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni,-tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
329 |
rotate(a=[0,0,90]) |
329 |
rotate(a=[0,0,90]) |
330 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
330 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
331 |
|
331 |
|
332 |
//sloupek 3 |
332 |
//sloupek 3 |
333 |
|
333 |
|
334 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
334 |
translate([((pocet_der2)*vzdalenost_der)/2+tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
335 |
rotate(a=[0,0,180]) |
335 |
rotate(a=[0,0,180]) |
336 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
336 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
337 |
|
337 |
|
338 |
//sloupek 4 |
338 |
//sloupek 4 |
339 |
|
339 |
|
340 |
translate([-((pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
340 |
translate([-((pocet_der2)*vzdalenost_der)/2-tloustka_bocnice-plbase_tolerance_horni, (pocet_der1)*vzdalenost_der+tloustka_bocnice-plbase_tolerance_horni,-tloustka_plbase]) |
341 |
rotate(a=[0,0,270]) |
341 |
rotate(a=[0,0,270]) |
342 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
342 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
343 |
|
343 |
|
344 |
|
344 |
|
345 |
|
345 |
|
346 |
|
346 |
|
347 |
|
347 |
|
348 |
|
348 |
|
349 |
|
349 |
|
350 |
|
350 |
|
351 |
|
351 |
|
352 |
} |
352 |
} |
353 |
} |
353 |
} |
354 |
|
354 |
|
355 |
plbase_vrchni_kryt_pro_odecet(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,-0.2,tloustka_plbase); |
355 |
plbase_vrchni_kryt_pro_odecet(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje1,vzdalenost_od_okraje2,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,-0.2,tloustka_plbase); |
356 |
|
356 |
|
357 |
//PLbase vrchní - pro odecet |
357 |
//PLbase vrchní - pro odecet |
358 |
//------------------------------------------------------------ |
358 |
//------------------------------------------------------------ |
359 |
|
359 |
|
360 |
|
360 |
|
361 |
module plbase_vrchni_kryt_pro_odecet(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,plbase_tolerance_horni,tloustka_plbase){ |
361 |
module plbase_vrchni_kryt_pro_odecet(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje1,vzdalenost_od_okraje2,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,plbase_tolerance_horni,tloustka_plbase){ |
362 |
|
362 |
|
363 |
|
363 |
|
364 |
|
364 |
|
365 |
|
365 |
|
366 |
|
366 |
|
367 |
|
367 |
|
368 |
union() |
368 |
union() |
369 |
{ |
369 |
{ |
370 |
difference() |
370 |
difference() |
371 |
{ |
371 |
{ |
372 |
//pro vyboceni sloupku |
372 |
//pro vyboceni sloupku |
373 |
|
373 |
|
374 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,tloustka_plbase/2]) |
374 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje2)/2,-vzdalenost_od_okraje1,tloustka_plbase/2]) |
375 |
rotate(a=[180,0,90]) |
375 |
rotate(a=[180,0,90]) |
376 |
translate([radidus_hrany,radidus_hrany,0]) |
376 |
translate([radidus_hrany,radidus_hrany,0]) |
377 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
377 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
378 |
|
378 |
|
379 |
translate([tloustka_bocnice+hrana_bocnice+plbase_tolerance_horni,tloustka_bocnice+hrana_bocnice+plbase_tolerance_horni,0]) |
379 |
translate([tloustka_bocnice+hrana_bocnice+plbase_tolerance_horni,tloustka_bocnice+hrana_bocnice+plbase_tolerance_horni,0]) |
380 |
minkowski() |
380 |
minkowski() |
381 |
{ |
381 |
{ |
382 |
|
382 |
|
383 |
|
383 |
|
384 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni-2*hrana_bocnice,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni-2*hrana_bocnice,tloustka_plbase]); // base plastics brick |
384 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje1-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni-2*hrana_bocnice,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje2-2*radidus_hrany+2*tloustka_bocnice-2*plbase_tolerance_horni-2*hrana_bocnice,tloustka_plbase]); // base plastics brick |
385 |
cylinder(r=radidus_hrany,h=0.1); |
385 |
cylinder(r=radidus_hrany,h=0.1); |
386 |
} |
386 |
} |
387 |
|
387 |
|
388 |
|
388 |
|
389 |
|
389 |
|
390 |
|
390 |
|
391 |
|
391 |
|
392 |
|
392 |
|
393 |
|
393 |
|
394 |
//SLOUPKY |
394 |
//SLOUPKY |
395 |
//------------------------------------------------------------ |
395 |
//------------------------------------------------------------ |
396 |
//sloupek 1 |
396 |
//sloupek 1 |
397 |
|
397 |
|
398 |
|
398 |
|
399 |
translate([(-(pocet_der2)*vzdalenost_der)/2-vzdalenost_od_okraje+prumer_matice/2,-vzdalenost_od_okraje+prumer_matice/2,-tloustka_plbase/2-0.2]) |
399 |
translate([(-(pocet_der2)*vzdalenost_der)/2-vzdalenost_od_okraje2+prumer_matice/2,-vzdalenost_od_okraje1+prumer_matice/2,-tloustka_plbase/2-0.2]) |
400 |
|
400 |
|
401 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
401 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
402 |
|
402 |
|
403 |
//sloupek 2 |
403 |
//sloupek 2 |
404 |
|
404 |
|
405 |
translate([((pocet_der2)*vzdalenost_der)/2+vzdalenost_od_okraje-prumer_matice/2,-vzdalenost_od_okraje+prumer_matice/2,-tloustka_plbase/2-0.2]) |
405 |
translate([((pocet_der2)*vzdalenost_der)/2+vzdalenost_od_okraje2-prumer_matice/2,-vzdalenost_od_okraje1+prumer_matice/2,-tloustka_plbase/2-0.2]) |
406 |
rotate(a=[0,0,90]) |
406 |
rotate(a=[0,0,90]) |
407 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
407 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
408 |
|
408 |
|
409 |
//sloupek 3 |
409 |
//sloupek 3 |
410 |
|
410 |
|
411 |
translate([((pocet_der2)*vzdalenost_der)/2+vzdalenost_od_okraje-prumer_matice/2, (pocet_der1)*vzdalenost_der+vzdalenost_od_okraje-prumer_matice/2,-tloustka_plbase/2-0.2]) |
411 |
translate([((pocet_der2)*vzdalenost_der)/2+vzdalenost_od_okraje2-prumer_matice/2, (pocet_der1)*vzdalenost_der+vzdalenost_od_okraje1-prumer_matice/2,-tloustka_plbase/2-0.2]) |
412 |
rotate(a=[0,0,180]) |
412 |
rotate(a=[0,0,180]) |
413 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
413 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
414 |
|
414 |
|
415 |
//sloupek 4 |
415 |
//sloupek 4 |
416 |
|
416 |
|
417 |
translate([-((pocet_der2)*vzdalenost_der)/2-vzdalenost_od_okraje+prumer_matice/2, (pocet_der1)*vzdalenost_der+vzdalenost_od_okraje-prumer_matice/2,-tloustka_plbase/2-0.2]) |
417 |
translate([-((pocet_der2)*vzdalenost_der)/2-vzdalenost_od_okraje2+prumer_matice/2, (pocet_der1)*vzdalenost_der+vzdalenost_od_okraje1-prumer_matice/2,-tloustka_plbase/2-0.2]) |
418 |
rotate(a=[0,0,270]) |
418 |
rotate(a=[0,0,270]) |
419 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
419 |
cylinder(r=prumer_sroubu/2,h=6*tloustka_plbase); |
420 |
|
420 |
|
421 |
//nápis |
421 |
//nápis |
422 |
|
422 |
|
423 |
translate([0,0,0]) |
423 |
translate([0,0,0]) |
424 |
translate([ 0, ((pocet_der1-1)*vzdalenost_der+vzdalenost_od_okraje+2*tloustka_bocnice)/2, tloustka_plbase/2-(tloustka_plbase-1)/2+0.01]) |
424 |
translate([ 0, ((pocet_der1-1)*vzdalenost_der+vzdalenost_od_okraje1+2*tloustka_bocnice)/2, tloustka_plbase/2-(tloustka_plbase-1)/2+0.01]) |
425 |
rotate([0,0,0]) |
425 |
rotate([0,0,0]) |
426 |
write(box_jmeno,h=10,t=tloustka_plbase-1, space= 1.1, font = "Letters.dxf",center=true); |
426 |
write(box_jmeno,h=10,t=tloustka_plbase-1, space= 1.1, font = "Letters.dxf",center=true); |
427 |
|
427 |
|
428 |
|
428 |
|
429 |
|
429 |
|
430 |
} |
430 |
} |
431 |
|
431 |
|
432 |
} |
432 |
} |
433 |
|
433 |
|
434 |
} |
434 |
} |
435 |
|
435 |
|
436 |
|
436 |
|
437 |
|
437 |
|