Rev Author Line No. Line
4279 jacho 1 $fn=40; // model faces resolution.
2 //include <../configuration.scad>
3  
4  
5 module kryt_rotoru(prumer_rotoru1,sila_materialu,prumer_sroubu)
6 {
7  
8 //kopule
9 difference()
10 {
11 sphere(d = prumer_rotoru1, $fn=100);
12 sphere(d = prumer_rotoru1-2*sila_materialu, $fn=100);
13  
14 translate([0,0,-prumer_rotoru1/2])
15 cube(size = [prumer_rotoru1, prumer_rotoru1, prumer_rotoru1], center = true);
16  
17 }
18  
19 //dno krytu
20 difference()
21 {
22 //zakladni valec
23 translate([0,0,sila_materialu/2])
24 cylinder (h = sila_materialu, r=prumer_rotoru1/2, center = true, $fn=100);
25  
26 //odstraněni casti valce
27 translate([prumer_rotoru1/2+prumer_sroubu*2,0,sila_materialu/2])
28 cube(size = [prumer_rotoru1, prumer_rotoru1, sila_materialu+1], center = true);
29 //otvor na sroub
30 translate([0,0,sila_materialu/2])
31 cylinder (h = sila_materialu+0.1, r=prumer_sroubu/2, center = true, $fn=100);
32  
33 }
34 }
35  
36  
37