Catches OK, but not great

This commit is contained in:
Matthias Neeracher 2024-08-29 15:48:14 +02:00
parent 4be6fef5f3
commit 93cd7de90b
2 changed files with 4 additions and 4 deletions

View File

@ -21,13 +21,13 @@ module _top_post(thickness, axis, ridge, funnel, tol) {
} }
} }
module latch_top(spacing=10, thickness=3, axis=2.5, ridge=.5, funnel=.7, tol=.2) { module latch_top(spacing=10, thickness=3, axis=2.5, ridge=.7, funnel=.7, tol=.2) {
translate([spacing/2, 0, 0]) _top_post(thickness, axis, ridge, funnel, tol); translate([spacing/2, 0, 0]) _top_post(thickness, axis, ridge, funnel, tol);
translate([-spacing/2-thickness, 0, 0]) _top_post(thickness, axis, ridge, funnel, tol); translate([-spacing/2-thickness, 0, 0]) _top_post(thickness, axis, ridge, funnel, tol);
} }
module latch_tongue(length=20, width=10, thickness=3, axis=2.5, ridge=.5, tol=.2) { module latch_tongue(length=20, width=10, thickness=3, axis=2.5, ridge=.7, tol=.2) {
overlap = ridge; overlap = ridge+thickness;
translate([width+thickness, 0, thickness/2]) rotate([0, -90, 0]) cylinder(h=width+2*thickness, d=axis); translate([width+thickness, 0, thickness/2]) rotate([0, -90, 0]) cylinder(h=width+2*thickness, d=axis);
hull() { hull() {
translate([width-tol, 0, thickness/2]) rotate([0, -90, 0]) cylinder(h=width-tol, d=thickness); translate([width-tol, 0, thickness/2]) rotate([0, -90, 0]) cylinder(h=width-tol, d=thickness);
@ -41,7 +41,7 @@ module latch_tongue(length=20, width=10, thickness=3, axis=2.5, ridge=.5, tol=.2
} }
} }
module latch_catch(width=10, thickness=3, axis=2.5, ridge=.5, tol=.2) { module latch_catch(width=10, thickness=3, axis=2.5, ridge=.7, tol=.2) {
overlap = ridge; overlap = ridge;
translate([-width/2, 0, 0]) cube([width-tol, thickness, (thickness+ridge)/2+overlap]); translate([-width/2, 0, 0]) cube([width-tol, thickness, (thickness+ridge)/2+overlap]);
translate([width/2-tol, 0, thickness/2+overlap]) rotate([0, -90, 0]) cylinder(h=width-tol, d=ridge); translate([width/2-tol, 0, thickness/2+overlap]) rotate([0, -90, 0]) cylinder(h=width-tol, d=ridge);

BIN
latch.stl

Binary file not shown.