diff README.md @ 10:a7a1b12fd6bf

latch: latches on any side, back latch for a removable lid Add back_side to put the hinge or a latch on the back, and latch_front, latch_left and latch_right checkboxes. The latch hardware is modelled in a face frame and placed on each latched side. All latches share one width, clamped to the narrowest latched face; the console lists the latched sides and the number of latches to print. A layout other than front latch with back hinge adds an l token with the side letters to the file name. Replace preview_lid_angle with preview_lid_open in percent: with the hinge 100 turns the lid by 180 degrees, without it lifts the lid by one body height. Presets converted. README updated.
author ark
date 2026-11-17 12:53 +0100
parents ac8f2ecb6c18
children 7bef1d0cb914
line wrap: on
line diff
--- a/README.md	Tue Nov 17 12:37:14 2026 +0100
+++ b/README.md	Tue Nov 17 12:53:33 2026 +0100
@@ -1,24 +1,29 @@
 # Hinged box
 
 A parametric OpenSCAD box with a filament hinge at the back and a hinged
-latch at the front. The box is sized by its inner dimensions. The default
-of 92 x 92 x 92 mm holds a stack of 90 mm notepad paper standing on edge.
+latch at the front. Further latches can go on the left and right sides,
+and a latch can replace the hinge for a removable lid. The box is sized
+by its inner dimensions. The default of 92 x 92 x 92 mm holds a stack of
+90 mm notepad paper standing on edge.
 
 See also https://www.wobblyhead.net/projects/hinged_box.html
 
 ## Design
 
-The box has three printed parts: body, lid and latch. Three pieces of
-filament serve as pins.
+The box has three printed parts: body, lid and latch, plus one more
+latch for each further latched side. Pieces of filament serve as pins:
+one for the hinge and two for each latch.
 
 The body is the lower part. The inner part of its wall rises above the
 seam as a lip, which fits into a recess in the lid and keeps the lid in
 place when closed.
 
 Body and lid share a row of hinge knuckles at the back, with the outer
-ones on the body. One filament pin runs through all of them.
+ones on the body. One filament pin runs through all of them. With a
+latch at the back instead, the lid has no hinge and comes off once all
+latches are open.
 
-The latch hangs from two lid knuckles on a second pin. Two body knuckles
+Each latch hangs from two lid knuckles on a pin of its own. Two body knuckles
 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
@@ -30,7 +35,7 @@
 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.
+latch knuckle down past the hook, and its back lies along the box face.
 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
@@ -63,11 +68,14 @@
 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`.
+`hinged_box_w92d92h92b85lm50_lw40lh20`. A latch layout other than a
+front latch with the back hinge adds `l` and the latched sides, from
+front, back, left and right, as in `hinged_box_lfblr_w92d92h92b85_lw40lh20`
+for a removable lid latched on all four sides.
 
-After printing, push filament through the hinge knuckles, the latch
-knuckles and the bar knuckles. The pin holes are the filament diameter
-plus clearance on each side.
+After printing, push filament through the hinge knuckles, and the latch
+and bar knuckles of each latched side. The pin holes are the filament
+diameter plus clearance on each side.
 
 ## Main parameters
 
@@ -104,13 +112,19 @@
 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.
 
+`back_side` puts the hinge or a latch on the back. `latch_front`,
+`latch_left` and `latch_right` add latches on the other sides, left and
+right as seen from the front. Without the hinge, the lid sweep check is
+left out. With the hinge, open the side latches before opening the lid.
+
 `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.
+width of the latches in mm, the same for all of them. If it is wider
+than the narrowest latched face, all latches are narrowed to fit and the
+console prints a warning with the width actually used. The console also
+gives the number of latches to print. `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