Line -... |
Line 1... |
- |
|
1 |
use <text/Write.scad> |
1 |
/* |
2 |
/* |
2 |
pocet_der1=5; |
3 |
pocet_der1=5; |
3 |
pocet_der2=3; |
4 |
pocet_der2=3; |
4 |
radidus_hrany=5; |
5 |
radidus_hrany=5; |
5 |
vzdalenost_der=10.16; |
6 |
vzdalenost_der=10.16; |
Line 163... |
Line 164... |
163 |
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]); |
164 |
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]); |
164 |
} |
165 |
} |
165 |
|
166 |
|
166 |
|
167 |
|
167 |
} |
168 |
} |
- |
|
169 |
//PLBASE ZAKLADNI - bez der s napisem produktu |
- |
|
170 |
//------------------------------------------------------------ |
- |
|
171 |
module plbase_bez_der_napis(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,box_jmeno){ |
- |
|
172 |
|
- |
|
173 |
|
- |
|
174 |
|
- |
|
175 |
difference () { |
- |
|
176 |
//union () { |
- |
|
177 |
translate([radidus_hrany,radidus_hrany,0]) |
- |
|
178 |
minkowski() |
- |
|
179 |
{ |
- |
|
180 |
cube([(pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany,(pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany,tloustka_plbase]); // base plastics brick |
- |
|
181 |
cylinder(r=radidus_hrany,h=0.1); |
- |
|
182 |
} |
- |
|
183 |
translate([radidus_hrany,radidus_hrany,0]) |
- |
|
184 |
translate([ ((pocet_der1-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2, ((pocet_der2-1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany)/2, tloustka_plbase/2+1]) |
- |
|
185 |
rotate([0,0,0]) |
- |
|
186 |
write(box_jmeno,h=10,t=tloustka_plbase-1, space= 1.1, font = "Letters.dxf",center=true); |
- |
|
187 |
|
168 |
|
188 |
|
- |
|
189 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje, (tloustka_plbase/2)]) // center top screw |
- |
|
190 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
- |
|
191 |
|
- |
|
192 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje, (tloustka_plbase/2)]) // center top screw |
- |
|
193 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
- |
|
194 |
|
- |
|
195 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase/2)]) // center top screw |
- |
|
196 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
- |
|
197 |
|
- |
|
198 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase/2)]) // center top screw |
- |
|
199 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
- |
|
200 |
|
- |
|
201 |
} |
- |
|
202 |
} |
169 |
|
203 |
|
170 |
/* |
204 |
/* |
171 |
plbase_zapustene_srouby(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_hlavy,prekryti_der,prumer_hlavy); |
205 |
plbase_zapustene_srouby(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_hlavy,prekryti_der,prumer_hlavy); |
172 |
|
206 |
|
173 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
207 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |