1 |
$fn=40; // model faces resolution. |
1 |
$fn=40; // model faces resolution. |
2 |
include <../configuration.scad> |
2 |
include <../configuration.scad> |
3 |
include <polyScrewThread_r1.scad> |
3 |
include <polyScrewThread_r1.scad> |
4 |
|
4 |
|
5 |
|
5 |
|
6 |
AWSCREEN01A_D03(D03_vyska_zavitu,D03_tolerance_zavitu,D03_material_za_zavitem,D03_polomer_zavitu,D03_polomer_stitu,D03_tloustka_materialu,D03_vyska_stitu,D03_pocet_vyztuh,screen_bevel); |
6 |
AWSCREEN01A_D03(D03_vyska_zavitu,D03_tolerance_zavitu,D03_material_za_zavitem,D03_polomer_zavitu,D03_polomer_stitu,D03_tloustka_materialu,D03_vyska_stitu,D03_pocet_vyztuh,screen_bevel); |
7 |
|
7 |
|
8 |
|
8 |
|
9 |
|
9 |
|
10 |
|
10 |
|
11 |
|
11 |
|
12 |
|
12 |
|
13 |
|
13 |
|
14 |
module AWSCREEN01A_D03(D03_vyska_zavitu,D03_tolerance_zavitu,D03_material_za_zavitem,D03_polomer_zavitu,D03_polomer_stitu,D03_tloustka_materialu,D03_vyska_stitu,D03_pocet_vyztuh,screen_bevel) |
14 |
module AWSCREEN01A_D03(D03_vyska_zavitu,D03_tolerance_zavitu,D03_material_za_zavitem,D03_polomer_zavitu,D03_polomer_stitu,D03_tloustka_materialu,D03_vyska_stitu,D03_pocet_vyztuh,screen_bevel) |
15 |
|
15 |
|
16 |
{ |
16 |
{ |
17 |
angle_sep = 360/D03_pocet_vyztuh; |
17 |
angle_sep = 360/D03_pocet_vyztuh; |
18 |
|
18 |
|
19 |
//spodnĂ kruh |
19 |
//spodnĂ kruh |
20 |
difference () { |
20 |
difference () { |
21 |
cylinder (h=3*D03_tloustka_materialu,r = D03_polomer_stitu,$fn=100); |
21 |
cylinder (h=3*D03_tloustka_materialu,r = D03_polomer_stitu,$fn=100); |
22 |
translate ([0,0,-0.005]) |
22 |
translate ([0,0,-0.005]) |
23 |
cylinder (h=3*D03_tloustka_materialu+0.01,r = D03_polomer_stitu-D03_tloustka_materialu,$fn=100); |
23 |
cylinder (h=3*D03_tloustka_materialu+0.01,r = D03_polomer_stitu-D03_tloustka_materialu,$fn=100); |
24 |
|
24 |
|
25 |
} |
25 |
} |
26 |
|
26 |
|
27 |
|
27 |
|
28 |
//horni zavit |
28 |
//horni zavit |
29 |
translate ([0,0,D03_vyska_stitu]) |
29 |
translate ([0,0,D03_vyska_stitu]) |
30 |
// screen upper rim |
30 |
// screen upper rim |
31 |
difference () { |
31 |
difference () { |
32 |
screw_thread((D03_polomer_zavitu-D03_tolerance_zavitu)*2,4,55,D03_vyska_zavitu+5,PI/2,2); |
32 |
screw_thread((D03_polomer_zavitu-D03_tolerance_zavitu)*2,4,55,D03_vyska_zavitu+5,PI/2,2); |
33 |
|
33 |
|
34 |
translate ([0,0,-0.01]) |
34 |
translate ([0,0,-0.01]) |
35 |
cylinder (h=D03_vyska_zavitu+0.02 ,r= D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem ,$fn=100); |
35 |
cylinder (h=D03_vyska_zavitu+0.02 ,r= D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem ,$fn=100); |
36 |
|
36 |
|
37 |
|
37 |
|
38 |
translate ([0,0,D03_vyska_zavitu-0.01]) |
38 |
translate ([0,0,D03_vyska_zavitu-0.01]) |
39 |
cylinder (h=D03_vyska_zavitu+0.02 ,r= D03_polomer_zavitu ,$fn=100); |
39 |
cylinder (h=D03_vyska_zavitu+0.02 ,r= D03_polomer_zavitu ,$fn=100); |
40 |
|
40 |
|
41 |
} |
41 |
} |
42 |
|
42 |
|
43 |
|
43 |
|
44 |
|
44 |
|
45 |
//screen |
45 |
//screen |
46 |
|
46 |
|
47 |
translate ([0,0,3*D03_tloustka_materialu]) |
47 |
translate ([0,0,3*D03_tloustka_materialu]) |
48 |
difference () { |
48 |
difference () { |
49 |
cylinder (h=D03_vyska_stitu-3*D03_tloustka_materialu,r1=D03_polomer_stitu ,r2=D03_polomer_zavitu,$fn=100); |
49 |
cylinder (h=D03_vyska_stitu-3*D03_tloustka_materialu,r1=D03_polomer_stitu ,r2=D03_polomer_zavitu-D03_tolerance_zavitu,$fn=100); |
50 |
translate ([0,0,-0.01/2]) |
50 |
translate ([0,0,-0.01/2]) |
51 |
cylinder (h=D03_vyska_stitu-3*D03_tloustka_materialu+0.01,r1=D03_polomer_stitu-D03_tloustka_materialu ,r2=D03_polomer_zavitu -D03_tolerance_zavitu- D03_material_za_zavitem,$fn=100); |
51 |
cylinder (h=D03_vyska_stitu-3*D03_tloustka_materialu+0.01,r1=D03_polomer_stitu-D03_tloustka_materialu ,r2=D03_polomer_zavitu- D03_material_za_zavitem-D03_tolerance_zavitu,$fn=100); |
52 |
|
52 |
|
53 |
|
53 |
|
54 |
} |
54 |
} |
55 |
|
55 |
|
56 |
|
56 |
|
57 |
//inner ring |
57 |
//inner ring |
58 |
|
58 |
|
59 |
|
59 |
|
60 |
difference () { |
60 |
difference () { |
61 |
cylinder (h=D03_vyska_zavitu,r = D03_polomer_zavitu + D03_material_za_zavitem/2,$fn=100); |
61 |
cylinder (h=D03_vyska_zavitu,r = D03_polomer_zavitu + D03_material_za_zavitem/2,$fn=100); |
62 |
translate([0,0,-1]) |
62 |
translate([0,0,-1]) |
63 |
screw_thread(D03_polomer_zavitu*2,4,55,D03_vyska_zavitu+2,PI/2,2); |
63 |
screw_thread(D03_polomer_zavitu*2,4,55,D03_vyska_zavitu+2,PI/2,2); |
64 |
} |
64 |
} |
65 |
|
65 |
|
66 |
|
66 |
|
67 |
// center ribs |
67 |
// center ribs |
68 |
for (i = [0 : (D03_pocet_vyztuh-1)]) { |
68 |
for (i = [0 : (D03_pocet_vyztuh-1)]) { |
69 |
rotate ([90,0,angle_sep* i]) |
69 |
rotate ([90,0,angle_sep* i]) |
70 |
translate ([0,0,-D03_tloustka_materialu/2]) |
70 |
translate ([0,0,-D03_tloustka_materialu/2]) |
71 |
linear_extrude (height = D03_tloustka_materialu, convexity = 10) |
71 |
linear_extrude (height = D03_tloustka_materialu, convexity = 10) |
72 |
polygon(points=[[D03_polomer_zavitu,D03_vyska_stitu],[D03_polomer_zavitu, 0],[D03_polomer_stitu - D03_tloustka_materialu,0],[D03_polomer_stitu- D03_tloustka_materialu,3*D03_tloustka_materialu]]); |
72 |
polygon(points=[[D03_polomer_zavitu,D03_vyska_stitu],[D03_polomer_zavitu, 0],[D03_polomer_stitu - D03_tloustka_materialu,0],[D03_polomer_stitu- D03_tloustka_materialu,3*D03_tloustka_materialu]]); |
73 |
|
73 |
|
74 |
} |
74 |
} |
75 |
} |
75 |
} |