aboutsummaryrefslogtreecommitdiff
path: root/lock.scad
blob: 044d99d923ac6636db24a3eb75e878c227ddc692 (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
width = 12;
length = 55;
height = 3;

// 3 mm after curve

// 6 offset 1, 21 offset 2

// 24 width

module quarter() {
    difference() {
        cylinder(h=width, r=8, center=true);
        translate(v=[0,-8,-width/2-.05]) {
            cube([8,16,width+.1]);
        }
        translate(v=[-8,-8,-width/2-.05]) {
            cube([16,8,width+.1]);
        }
        translate(v=[-3, 0, 0])
            cylinder(h=width+.1, r=3, center=true);
    }
}



// 17mm

/* // Top */
union() {
    /* translate(v=[-3,9,0]) { */
    /*     difference() { */
    /*         cylinder(h=width, r=5, center=true); */
    /*         cylinder(h=width+.1, r=3, center=true); */
    /*         translate(v=[0,-2.5,0]){ */
    /*             cube([10,5,width+.1], center=true); */
    /*         } */
    /*     } */
    /* } */
    translate(v=[0,9,0])
        quarter();
    translate(v=[0,0,-12])
        cube([3,17,24]);
}

/* // Bottom */
/* translate(v=[0, 20, 0]) { */
/*    difference(){ */
/*        translate(v=[0, 0, -12]) { */
/*            cube([height, 38, 24]); */
/*        } */

/*         translate(v=[(height/2),38 - 6, 0]) { */
/*             rotate([0,90,0]) { */
/*                 cylinder(h=height+.1, d=4, center=true); */
/*             } */
/*         } */

/*         translate(v=[(height/2),38 - 21, 0]) { */
/*             rotate([0,90,0]) { */
/*                 cylinder(h=height+.1, d=4, center=true); */
/*             } */
/*         } */
/*    } */
/* } */