4638 |
jacho |
1 |
$fn=40; // model faces resolution. |
|
|
2 |
|
|
|
3 |
pocet_der1=6; |
|
|
4 |
pocet_der2=7; |
|
|
5 |
radidus_hrany=5; |
|
|
6 |
vzdalenost_der=10.16; |
|
|
7 |
vzdalenost_od_okraje=5; |
|
|
8 |
prumer_sroubu=3.3; |
|
|
9 |
|
|
|
10 |
tloustka_plbase=2; |
|
|
11 |
prekryti_der=0.0; |
|
|
12 |
|
|
|
13 |
vyska_nozicky=5; |
|
|
14 |
|
|
|
15 |
vyska_hlavy = 3.5; |
|
|
16 |
prumer_hlavy=6; |
|
|
17 |
|
|
|
18 |
plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
|
|
19 |
|
|
|
20 |
//PLBASE ZAKLADNI |
|
|
21 |
//------------------------------------------------------------ |
|
|
22 |
module plbase(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der){ |
|
|
23 |
|
|
|
24 |
difference () { |
|
|
25 |
//union () { |
|
|
26 |
translate([radidus_hrany,radidus_hrany,0]) |
|
|
27 |
minkowski() |
|
|
28 |
{ |
|
|
29 |
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 |
|
|
30 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
31 |
} |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
for (i = [0:1:pocet_der1-1]) { |
|
|
35 |
for (a = [0:1:pocet_der2-1]) { |
|
|
36 |
|
|
|
37 |
translate([vzdalenost_od_okraje+vzdalenost_der*i,vzdalenost_od_okraje+vzdalenost_der*a, (tloustka_plbase-prekryti_der)/2]) // center top screw |
|
|
38 |
cylinder(((tloustka_plbase-prekryti_der)), d=prumer_sroubu, center=true); |
|
|
39 |
} |
|
|
40 |
} |
|
|
41 |
|
|
|
42 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje, (tloustka_plbase/2)]) // center top screw |
|
|
43 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
|
|
44 |
|
|
|
45 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje, (tloustka_plbase/2)]) // center top screw |
|
|
46 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
|
|
47 |
|
|
|
48 |
translate([vzdalenost_od_okraje+(pocet_der1-1)*vzdalenost_der,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase/2)]) // center top screw |
|
|
49 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
|
|
50 |
|
|
|
51 |
translate([vzdalenost_od_okraje,vzdalenost_od_okraje+(pocet_der2-1)*vzdalenost_der, (tloustka_plbase/2)]) // center top screw |
|
|
52 |
cylinder(((tloustka_plbase+0.3)), d=prumer_sroubu, center=true); |
|
|
53 |
|
|
|
54 |
} |
|
|
55 |
} |
|
|
56 |
|