diff README.md @ 8:ac8f2ecb6c18

latch: block style, middle knuckle share, middle-width plate Add latch_style with a new block latch: a solid piece in the middle slot with the profile of the body knuckles, extended below the hook by latch_grip. Between knuckle and hook only the knuckle ring and the front wall remain; below the bar the opening follows the hook tip line to the back face. A notch at the bottom of the back face takes a fingernail. Add latch_middle_ratio for the share of the latch width taken by the middle knuckle, clamped with a warning so no slot is narrower than two extrusions. Add latch_plate_full. Without it the plate is only as wide as the middle slot, and the latch exports standing on its side with the plate thickness rounded up to whole extrusions. The block also prints on its side. The latch file name gets the style, and all names get the middle share when it is not .33. Extrude slabs with convexity 4 so the preview shows the block profile correctly. README updated.
author ark
date 2026-11-17 12:32 +0100
parents f2694e49cec1
children a7a1b12fd6bf
line wrap: on
line diff
--- a/README.md	Tue Nov 17 08:50:46 2026 +0100
+++ b/README.md	Tue Nov 17 12:32:19 2026 +0100
@@ -19,10 +19,23 @@
 ones on the body. One filament pin runs through all of them.
 
 The latch hangs from two lid knuckles on a second pin. Two body knuckles
-below it hold the third piece of filament as a bar. The hook at the
-bottom of the latch wraps around this bar, and its tip reaches slightly
-past it, so the latch snaps over the bar when closed. A grip tab below
-the hook gives a finger hold.
+below it hold the third piece of filament as a bar. The latch itself
+sits in the slot between these knuckles. The hook at the bottom of the
+latch wraps around this bar, and its tip reaches slightly past it, so
+the latch snaps over the bar when closed.
+
+The latch comes in two styles. The plate style joins knuckle and hook
+with a plate in front of the outer knuckles, and a grip tab below the
+hook gives a finger hold. The plate either spans the full latch width
+and prints flat, or is only as wide as the middle slot and prints
+standing on its side. The block style is a solid piece with the same
+rounded and sloped profile as the body knuckles. It reaches from the
+latch knuckle down past the hook, and its back lies along the box front.
+Between knuckle and hook, only the knuckle ring and the front wall
+remain. Below the bar, the cut-out on the wall side runs from the hook
+tip straight down to the back face, so the bar can leave when the latch
+opens. A notch at the bottom edge of the back face takes a fingernail.
+The block prints standing on its side.
 
 Wall, floor and knuckle sizes are set in extrusions and layers. The model
 converts them with the line width and layer height from the print
@@ -34,18 +47,23 @@
 presets are stored in `main.json`: "cardbox 45" and "calling cards box".
 
 Select the part to export with the `part` setting. For export, the lid is
-turned upside down and the latch is laid flat, both ready to print. The
-body prints as it stands. All parts use the same parameters, so export
-all three without changing anything else.
+turned upside down, and the latch is laid flat or stood on its side as
+its style needs, both ready to print. The body prints as it stands. All
+parts use the same parameters, so export all three without changing
+anything else.
 
 The console lists the derived sizes: wall thickness, outer size, body and
 lid height, pin hole diameter, knuckle length, latch detent and the
 clearance of the lid over the content when it opens. The last echo
 line is a file name that encodes the main parameters, for example
 `hinged_box_w92d92h92b85_lw40lh20`. With a single part selected, the name
-includes the part, as in `hinged_box_lid_w92d92h92b85_lw40lh20`. A box
-with more than one cell adds the column and row count, as in
-`hinged_box_c3r2_w92d92h92b85_lw40lh20`.
+includes the part, as in `hinged_box_lid_w92d92h92b85_lw40lh20`. The
+latch name adds its style: `plate`, `plate-middle` or `block`, as in
+`hinged_box_latch_block_w92d92h92b85_lw40lh20`. A box with more than one
+cell adds the column and row count, as in
+`hinged_box_c3r2_w92d92h92b85_lw40lh20`. A latch middle share other than
+.33 adds `lm` and the share in percent after the body ratio, as in
+`hinged_box_w92d92h92b85lm50_lw40lh20`.
 
 After printing, push filament through the hinge knuckles, the latch
 knuckles and the bar knuckles. The pin holes are the filament diameter
@@ -86,11 +104,25 @@
 For the hinge, set `filament_diameter` to the filament used for pins and
 bar. `hinge_knuckles` is the number of hinge knuckles, an odd number.
 
-`latch_width` is the width of the latch in mm. If it is wider than the
-hinge span, the latch is narrowed to the span and the console prints a
-warning with the width actually used. The hook tip has to pass
-`latch_detent` mm of overlap at the bar. With 0 the latch swings freely.
-`latch_hook_lines` sets the hook wall around the bar in extrusions.
+`latch_style` selects the plate or the block latch. `latch_width` is the
+width of the latch in mm. If it is wider than the hinge span, the latch
+is narrowed to the span and the console prints a warning with the width
+actually used. `latch_middle_ratio` is the share of that width taken by
+the middle slot with the latch knuckle; the two outer slots share the
+rest. A ratio that leaves any slot narrower than two extrusions is
+clamped, with a warning.
+
+For the plate style, `latch_plate_full` makes the plate span the full
+latch width, printed flat. Without it, the plate is as wide as the
+middle slot and the latch prints on its side. `latch_layers` sets the
+plate thickness in layers. On its side, that thickness is rounded up to
+whole extrusions. `latch_grip` is the length of the grip tab below the
+hook, or for the block style, how far the block reaches below the hook.
+
+The hook tip has to pass `latch_detent` mm of overlap at the bar. With 0
+the latch swings freely. `latch_hook_lines` sets the hook wall around
+the bar in extrusions. On the block, the wall in front of the bar is the
+larger of `latch_hook_lines` and `hinge_lines`.
 
 `line_width` and `layer_height` are the extrusion width and layer height
 the walls are built from. `clearance` is the gap between moving parts and