diff options
author | Thomas Albers Raviola <thomas@thomaslabs.org> | 2024-11-21 15:13:52 +0100 |
---|---|---|
committer | Thomas Albers Raviola <thomas@thomaslabs.org> | 2024-11-21 15:13:52 +0100 |
commit | 871a8d65f0d92929f64b5feca51b892307bebca9 (patch) | |
tree | 10a8c4ece76530618c573cec80a0e25d047768f5 /lock.scad |
Initial commit
Diffstat (limited to 'lock.scad')
-rw-r--r-- | lock.scad | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/lock.scad b/lock.scad new file mode 100644 index 0000000..044d99d --- /dev/null +++ b/lock.scad @@ -0,0 +1,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); */ +/* } */ +/* } */ +/* } */ +/* } */ |