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