# Design This file fixes the geometry. How the model's code is organised is up to you, as long as the numbers here hold. ## Stages At least three stages, listed in the solve file (for example: slide a panel, lift a slat, rotate a barrel). Tolerances are 0.1 mm static and 0.2 mm sliding at the defaults, matching the settings. ## Secret A cavity of at least 8 ml at the default size, if the option is on, as measured in the file. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `size` | Box size, mm | 90 | The outer cube, from 60 to 140. | | `static_gap` | Static clearance, mm | 0.1 | From 0.05 to 0.2, for parts that only sit. | | `slide_gap` | Sliding clearance, mm | 0.2 | From 0.15 to 0.35, for parts that move. | | `wall` | Wall thickness, mm | 2.4 | From 1.8 to 4. | | `secret` | A secret compartment | on | A last cavity revealed at the end of the path. | | `lid_inlay` | A lid inlay | off | A decorative inlay on the first face, same material. | | `tool` | Modelling tool | cadquery | CadQuery writes STEP and STL. OpenSCAD writes STL. | ## Acceptance at the defaults Millimetres. Default outer size 80 × 60 × 50, wall 3.0, secret compartment on, lid inlay off. The opening path has four documented moves. | Quantity | Value | Tolerance | Source | | --- | --- | --- | --- | | Outer size X, Y, Z | 80.00, 60.00, 50.00 | 0.10 | Closed | | Wall thickness | 3.00 | 0.10 | `wall` | | Moves in the opening path | 4 | 0 | Order is in this file | | Secret cavity, inner | 24.00 × 16.00 × 10.00 | 0.20 | When `secret` is on | | Panel sliding clearance | 0.30 | 0.02 | Each moving panel | Moves, in order: slide the top panel 20 mm toward the short side; slide the left panel 15 mm; rotate the hidden cam 90 degrees; lift the lid. A script that applies the moves in order must reveal the cavity; any other first move must not. ## Screenshots These pictures are headless OpenSCAD renders of the reference model in `reference/model.scad`, at the default inputs. They are not drawings of a product that has not been modelled. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel. | File | What it shows | | --- | --- | | `shots/closed.png` | Puzzle box 80 × 60 × 50 mm | | `shots/open.png` | After the four-move path, cavity shown | ## How to verify 1. Build the model at the default inputs and at two other legal input sets. 2. Measure every row of the acceptance table in this file; each must fall inside its tolerance. Use the solid itself or a mesh library on the exported STL, as `design.md` says for the chosen tool. 3. Refuse at least one out-of-range input by name before modelling. 4. Confirm each exported part is a manifold, watertight mesh, and that walls and print orientation hold where this file asks. 5. Stated tolerances (0.1 mm static and 0.2 mm sliding at the defaults) are measured on mating parts. A scripted solve path runs with clearance checks, and a wrong first move is blocked. Assembly and mid-solve renders are written. No physical print is required.