aboutsummaryrefslogtreecommitdiff
path: root/zero_oclock.scad
blob: 3dc6d13cb51307d7095d85bc25e284e7618ba699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
$fa = 1;
$fs = 0.4;
bheight = 2.8;
theight = 40.0;


module part_1() {
    difference(){
        union() {
                linear_extrude(theight){
                    polygon(points=[[-8.0,0.0],[-40.0,-52.0],[40.0,-52],[8.0,0.0]]);
                }
                linear_extrude(theight){
                circle($fn = 0, $fa = 12, $fs = 2, r = 30.00);
                }
            }
        
        
        translate([0,0,bheight]) {

            union() {
                linear_extrude(theight){
                    polygon(points=[[-6.0,0.0],[-36.0,-50.0],[36.0,-50],[5.0,0.0]]);
                }
                linear_extrude(theight){
                circle($fn = 0, $fa = 12, $fs = 2, r = 28.00);
                }
            }
        }
    }
}
module part_2() {
    union(){
        difference(){
            union(){
                translate([0,0,bheight]) {

                    union() {
                            linear_extrude(bheight){
                                polygon(points=[[-8.0,0.0],[-40.0,-52.0],[40.0,-52],[8.0,0.0]]);
                            }
                            linear_extrude(bheight){
                            circle($fn = 0, $fa = 12, $fs = 2, r = 30.00);
                            }
                        }
                    
                }
                union() {
                    linear_extrude(bheight){
                        polygon(points=[[-6.0,0.0],[-36.0,-50.0],[36.0,-50],[5.0,0.0]]);
                    }
                    linear_extrude(bheight){
                    circle($fn = 0, $fa = 12, $fs = 2, r = 28.00);
                    }
                }
                
            }
            translate([0,0,-(bheight/2.0)]) {
                linear_extrude(bheight*3.0){
                    circle($fn = 0, $fa = 12, $fs = 2, r = 26.00);
                }
            }

        }
        
            translate([0.0,-45.5,(bheight*2.0)+5.0]) {
                difference(){
                cube(13,10,10,center=true);
                rotate([90,0,0]) { 
                    cylinder(r=3,h=20,center=true);
                }
            }

        }        
    }
}

// part_1()
part_2();