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 116... |
Line 117... |
116 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, 1.5+(vyska_hlavy/2)]) // center top screw |
117 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, 1.5+(vyska_hlavy/2)]) // center top screw |
117 |
cylinder(((vyska_hlavy+0.5)), d=prumer_hlavy, center=true); |
118 |
cylinder(((vyska_hlavy+0.5)), d=prumer_hlavy, center=true); |
118 |
|
119 |
|
119 |
} |
120 |
} |
120 |
} |
121 |
} |
- |
|
122 |
|
- |
|
123 |
|
- |
|
124 |
//PLBASE S NOZICKAMA polovicni pro tisk |
- |
|
125 |
//----------------------------------------------------------- |
- |
|
126 |
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){ |
- |
|
127 |
|
- |
|
128 |
difference() |
- |
|
129 |
{ |
- |
|
130 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
- |
|
131 |
|
- |
|
132 |
|
- |
|
133 |
translate([-1,-1, -1]) |
- |
|
134 |
|
- |
|
135 |
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]); |
- |
|
136 |
} |
- |
|
137 |
|
- |
|
138 |
|
- |
|
139 |
|
- |
|
140 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase)]) // center top screw |
- |
|
141 |
rotate(a=[180,0,0]) |
- |
|
142 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
- |
|
143 |
|
- |
|
144 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase)]) // center top screw |
- |
|
145 |
rotate(a=[180,0,0]) |
- |
|
146 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
- |
|
147 |
|
- |
|
148 |
|
- |
|
149 |
|
- |
|
150 |
|
- |
|
151 |
} |
- |
|
152 |
|
- |
|
153 |
//PLBASE polovicni pro tisk |
- |
|
154 |
//----------------------------------------------------------- |
- |
|
155 |
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){ |
- |
|
156 |
|
- |
|
157 |
difference() |
- |
|
158 |
{ |
- |
|
159 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
- |
|
160 |
|
- |
|
161 |
|
- |
|
162 |
translate([-1,-1, -1]) |
- |
|
163 |
|
- |
|
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]); |
- |
|
165 |
} |
- |
|
166 |
|
- |
|
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,90]) |
- |
|
186 |
write(box_jmeno,h=10,t=tloustka_plbase-1, space= 1.1, font = "Letters.dxf",center=true); |
- |
|
187 |
|
- |
|
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 |
} |
- |
|
203 |
|
121 |
/* |
204 |
/* |
122 |
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); |
123 |
|
206 |
|
124 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
207 |
nozicka (vzdalenost_der,vyska_nozicky,prumer_sroubu,vyska_hlavy,prumer_hlavy); |
- |
|
208 |
|
125 |
|
209 |
|