Rev Author Line No. Line
4536 jacho 1 $fn=40; // model faces resolution.
2 include <../configuration.scad>
3  
4542 jacho 4 include <WINDGAUGE01A_D01.scad>
5 include <polyScrewThread_r1.scad>
4536 jacho 6  
4542 jacho 7 PI=3.141592;
4536 jacho 8  
4542 jacho 9 //Držák anemometru
10  
11 module WINDGAUGE01A_D02()
12 {
4536 jacho 13 difference()
14 {
4542 jacho 15 union()
16 {
17 //výstuha
18 rotate ([0,-90,0])
19 linear_extrude (height = S01_sila_materialu, convexity = 10)
20 polygon(points=[[D02_vyska_uchytky/2,D01_delka_tyce+S01_prumer_vnitrni/2+D01_material_pred_zavitem+D02_sila_materialu-1],[0, D01_delka_tyce+S01_prumer_vnitrni/2+D01_material_pred_zavitem+D02_sila_materialu-1],[0,S01_prumer_vnitrni/2+D01_material_pred_zavitem],[D01_material_pod_zavitem,S01_prumer_vnitrni/2+D01_material_pred_zavitem]]);
21  
22 //zavit
23 translate([0,0,D01_material_pod_zavitem])
24 screw_thread(S01_prumer_vnitrni-S01_tolerance_zavit,4,55,S01_vyska_spodniho_zavitu,PI/2,2);
4536 jacho 25  
4542 jacho 26 //spodní valec
27 translate([0,0,D01_material_pod_zavitem/2])
28 cylinder (h = D01_material_pod_zavitem, r=(S01_prumer_vnitrni-S01_tolerance_zavit+D01_material_pred_zavitem*2)/2, center = true, $fn=100);
29  
30 //uchyt na tyc
31 translate([0,D01_delka_tyce/2+(S01_prumer_vnitrni-S01_tolerance_zavit)/2+D01_material_pred_zavitem,D01_material_pod_zavitem/2])
32 cube([D01_sirka_tyce,D01_delka_tyce,D01_material_pod_zavitem],center=true);
33  
34 //uchyt na tyc ovalna cast
35 translate([0,(S01_prumer_vnitrni-S01_tolerance_zavit)/2+D01_material_pred_zavitem,D01_material_pod_zavitem/2])
36 cube([D01_sirka_tyce,D01_material_za_zavitem+D01_material_pred_zavitem,D01_material_pod_zavitem],center=true);
37  
38 //material kolem uchytu na sloupek
39 translate([0,D01_delka_tyce+(S01_prumer_vnitrni-S01_tolerance_zavit)/2+D01_material_pred_zavitem+(D02_sila_materialu+D02_prumer_obruby/2)/2-D02_dotahova_vzdalenost,D01_material_pod_zavitem/2])
40  
41 difference()
42 {
43 cube([D01_sirka_tyce,D02_sila_materialu+D02_prumer_obruby/2,D01_material_pod_zavitem],center=true);
44  
45 translate([0,D02_prumer_obruby/2-D02_dotahova_vzdalenost-D02_sila_materialu,0])
46 cylinder(h=D02_vyska_uchytky+0.01,r=D02_prumer_obruby/2,center=true);
47 }
48  
49 //uchyt na sloupek
50 translate([0,D01_delka_tyce+(S01_prumer_vnitrni-S01_tolerance_zavit)/2+D01_material_pred_zavitem+D02_sila_materialu+(D02_prumer_obruby)/2,D02_vyska_uchytky/2])
51 rotate(a=[0,0,270])
52 WINDGAUGE01A_D01_2();
53  
54 }
55  
56 //otvor
57 translate([0,0,(D01_material_pod_zavitem+S01_vyska_spodniho_zavitu)/2])
58 cylinder (h = D01_material_pod_zavitem+S01_vyska_spodniho_zavitu+0.02, r=((S01_prumer_vnitrni-S01_tolerance_zavit)-2*D01_material_za_zavitem)/2, center = true, $fn=100);
59  
4536 jacho 60 }
61 }
4542 jacho 62  
63 WINDGAUGE01A_D02();
4536 jacho 64  
4542 jacho 65  
66  
67