4216 |
jacho |
1 |
vyska = 60; //celeho sloupku |
4222 |
jacho |
2 |
zapust = 6.5; //vyska zapusteni listy |
4216 |
jacho |
3 |
vzdalenost_der = 10; //roztec upevňovacich der |
|
|
4 |
vzdalenost_od_okraje = 10; //vzdalenost stredu upevnovaci diry od kraje desky |
|
|
5 |
vzdalenost_od_diry = 5; //vzdalenost od stredu upevnovaci diry na druhou stranu |
|
|
6 |
radidus_hrany = 5; //radius zaobleni |
|
|
7 |
|
4222 |
jacho |
8 |
//parametry šroubu |
|
|
9 |
prumer_sroubu=3.3; |
4216 |
jacho |
10 |
|
|
|
11 |
|
4222 |
jacho |
12 |
//parametry matice |
|
|
13 |
prumer_matice=6; //hrany k hraně |
|
|
14 |
vyska_matice=3; //vyska matice |
|
|
15 |
posuv_dorazu=0; //pro moznost posuvu dorazu pro vsunutí matice |
|
|
16 |
matice_sila_materialu=2; //sila materialu pod/nad maticí na ose z |
4216 |
jacho |
17 |
|
4222 |
jacho |
18 |
difference () { |
4216 |
jacho |
19 |
union () { |
|
|
20 |
color("green") |
|
|
21 |
translate([-(vzdalenost_od_okraje-radidus_hrany),-(vzdalenost_od_okraje-radidus_hrany),0]) // center top screw |
|
|
22 |
cylinder(vyska, d=(2*radidus_hrany), center=true); |
|
|
23 |
|
|
|
24 |
color("cyan") |
|
|
25 |
translate([vzdalenost_der/4, vzdalenost_der/4, -vyska/2]) |
|
|
26 |
linear_extrude(height = vyska) |
|
|
27 |
square([vzdalenost_der/2, vzdalenost_der/2], center = true); |
|
|
28 |
|
|
|
29 |
color("gray") |
|
|
30 |
translate([-vzdalenost_od_okraje/2, vzdalenost_der/4, -vyska/2]) |
|
|
31 |
linear_extrude(height = vyska) |
|
|
32 |
square([(vzdalenost_od_okraje), vzdalenost_der/2], center = true); |
|
|
33 |
|
|
|
34 |
color("gray") |
|
|
35 |
translate([vzdalenost_der/4, -vzdalenost_od_okraje/2, -vyska/2]) |
|
|
36 |
linear_extrude(height = vyska) |
|
|
37 |
square([vzdalenost_der/2, vzdalenost_od_okraje], center = true); |
|
|
38 |
|
|
|
39 |
color("red") |
|
|
40 |
translate([-(vzdalenost_od_okraje-radidus_hrany)/2, -vzdalenost_od_okraje/2, -vyska/2]) |
|
|
41 |
linear_extrude(height = vyska) |
|
|
42 |
square([vzdalenost_od_okraje-radidus_hrany, vzdalenost_od_okraje], center = true); |
|
|
43 |
|
|
|
44 |
color("red") |
|
|
45 |
translate([-vzdalenost_od_okraje/2,-(vzdalenost_od_okraje-radidus_hrany)/2, -vyska/2]) |
|
|
46 |
linear_extrude(height = vyska) |
|
|
47 |
square([vzdalenost_od_okraje, vzdalenost_od_okraje-radidus_hrany], center = true); |
|
|
48 |
|
|
|
49 |
color("green") |
|
|
50 |
translate([vzdalenost_der, -vzdalenost_od_okraje/2, -(vyska-(2*zapust))/2]) |
|
|
51 |
linear_extrude(height = (vyska-(2*zapust))) |
|
|
52 |
square([vzdalenost_der, vzdalenost_od_okraje], center = true); |
|
|
53 |
|
|
|
54 |
color("red") |
|
|
55 |
translate([-vzdalenost_od_okraje/2,vzdalenost_der, -(vyska-(2*zapust))/2]) |
|
|
56 |
linear_extrude(height = (vyska-(2*zapust))) |
|
|
57 |
square([ vzdalenost_od_okraje,vzdalenost_der], center = true); |
|
|
58 |
|
|
|
59 |
color("cyan") |
|
|
60 |
translate([vzdalenost_od_diry/2, vzdalenost_der, -(vyska-(2*zapust))/2]) |
|
|
61 |
linear_extrude(height = (vyska-(2*zapust))) |
|
|
62 |
square([(vzdalenost_od_diry), vzdalenost_der], center = true); |
|
|
63 |
|
|
|
64 |
color("cyan") |
|
|
65 |
translate([vzdalenost_der, vzdalenost_od_diry/2, -(vyska-(2*zapust))/2]) |
|
|
66 |
linear_extrude(height = (vyska-(2*zapust))) |
|
|
67 |
square([vzdalenost_der, vzdalenost_od_diry ], center = true); |
|
|
68 |
|
|
|
69 |
} |
4222 |
jacho |
70 |
|
|
|
71 |
//diry na sroub |
|
|
72 |
translate([0,0,0]) // center top screw |
|
|
73 |
cylinder(2*vyska, d=(prumer_sroubu), center=true); |
|
|
74 |
|
|
|
75 |
translate([vzdalenost_der,0,0]) // center top screw |
|
|
76 |
cylinder(2*vyska, d=(prumer_sroubu), center=true); |
|
|
77 |
|
|
|
78 |
translate([0,vzdalenost_der,0]) // center top screw |
|
|
79 |
cylinder(2*vyska, d=(prumer_sroubu), center=true); |
|
|
80 |
|
|
|
81 |
//diry na matice |
|
|
82 |
//1. krajni matice |
|
|
83 |
translate([vzdalenost_der,(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)),((vyska-2*zapust)/2-vyska_matice/2)-matice_sila_materialu]) // center top screw |
|
|
84 |
|
|
|
85 |
cube([prumer_matice, prumer_matice+posuv_dorazu+vzdalenost_od_diry,vyska_matice], center = true); |
|
|
86 |
|
|
|
87 |
translate([vzdalenost_der,(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)),-(((vyska-2*zapust)/2-vyska_matice/2)-matice_sila_materialu)]) // center top screw |
|
|
88 |
|
|
|
89 |
cube([prumer_matice, prumer_matice+posuv_dorazu+vzdalenost_od_diry,vyska_matice], center = true); |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
//2. krajni matice |
|
|
93 |
translate([(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)), vzdalenost_der,((vyska-2*zapust)/2-vyska_matice/2)-matice_sila_materialu]) // center top screw |
|
|
94 |
|
|
|
95 |
cube([ prumer_matice+posuv_dorazu+vzdalenost_od_diry,prumer_matice,vyska_matice], center = true); |
|
|
96 |
|
|
|
97 |
translate([(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)), vzdalenost_der,-(((vyska-2*zapust)/2-vyska_matice/2)-matice_sila_materialu)]) // center top screw |
|
|
98 |
|
|
|
99 |
cube([ prumer_matice+posuv_dorazu+vzdalenost_od_diry,prumer_matice,vyska_matice], center = true); |
|
|
100 |
|
|
|
101 |
//prostredni dira |
|
|
102 |
translate([0,(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)),((vyska)/2-vyska_matice/2)-matice_sila_materialu]) // center top screw |
|
|
103 |
|
|
|
104 |
cube([prumer_matice, prumer_matice+posuv_dorazu+vzdalenost_od_diry,vyska_matice], center = true); |
|
|
105 |
|
|
|
106 |
translate([0,(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)),-(((vyska)/2-vyska_matice/2)-matice_sila_materialu)]) // center top screw |
|
|
107 |
|
|
|
108 |
cube([prumer_matice, prumer_matice+posuv_dorazu+vzdalenost_od_diry,vyska_matice], center = true); |
|
|
109 |
|
|
|
110 |
|
|
|
111 |
} |