aboutsummaryrefslogtreecommitdiff
path: root/screwey.scad
blob: 4f88a774243a558b6a227548c74223a362805d89 (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
$fa = 1;
$fs = 0.4;

module bevelled_screw_hole(diameter=3,depth=15,location=[0.0,0.0,0.0],rotation=[0.0,0.0,0.0]) {
    R=diameter/2.0;
    translate(location) {
        rotate(rotation){
            union(){
                translate([0,0,depth-R]) {
                    cylinder(h=R,
                            r1=R,
                            r2=R*2,
                            center=false);
                }
                translate([0,0,depth]) {
                    cylinder(h=R*2,r=R*2,center=false);
                }
                cylinder(h=depth-R,r=R,center=false);
           }
        }
    }
}

bevelled_screw_hole(rotation=[0,90,0],location=[0,15,3]);
bevelled_screw_hole(diameter=6,depth=8,rotation=[0,90,0],location=[0,0,5]);
//bevelled_screw_hole(rotation=[0,90,0],location=[0,-15,3]);

module captive_nut_hole(diameter=3,depth=15,location=[0.0,0.0,0.0],rotation=[0.0,0.0,0.0]) {
    translate(location) {
        rotate(rotation){
            cylinder(d=9.0,h=6.0,center=false,$fn=6);
        }
    }
}

captive_nut_hole(rotation=[0,90,0],location=[0,-15,3]);