# Design This file fixes the geometry. How the model's code is organised is up to you, as long as the numbers here hold. ## First puzzle A 6-piece interlocking cube, piece meshes and the path file are the authority. The second puzzle, if on, is a 4-piece set at 0.7 * `size`. ## Path Each step is a translation along an axis of at least `clearance` more than the engagement length, so the moving piece clears the rest. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `size` | Assembled size, mm | 60 | The bounding cube, from 40 to 100. | | `clearance` | Sliding clearance, mm | 0.2 | From 0.1 to 0.35. | | `wall` | Min wall, mm | 2.0 | From 1.4 to 3. | | `second` | A second puzzle | on | A second, smaller interlocking set in the same project. | | `tray` | A tray | on | A tray that holds the assembled puzzle. | | `tool` | Modelling tool | cadquery | CadQuery writes STEP and STL. OpenSCAD writes STL. | ## Acceptance at the defaults Millimetres. Default piece count 6, bar section 12, `gap` 0.25, second puzzle and tray on. | Quantity | Value | Tolerance | Source | | --- | --- | --- | --- | | Bar section | 12.00 × 12.00 | 0.05 | Of each burr bar | | Assembly cube, first puzzle | 36.00 | 0.10 | Three bars each way | | Mating gap | 0.25 | 0.02 | `gap` | | Second puzzle, piece count | 4 | 0 | When `second` is on | | Tray inner size | 40.00 × 40.00 | 0.10 | When `tray` is on | A script assembles the pieces in the documented order and checks there is no intersection except the mating gap. A disassembly sequence of at least three moves is written next to the model. Each piece is a manifold mesh. ## 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/assembled.png` | Six-piece interlocking cube on its tray | | `shots/exploded.png` | Pieces parted, tray below | ## 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. Piece counts and bounding boxes match a file. A scripted disassembly path runs with no collisions at the stated clearance, and a wrong first move is reported as blocked. Printability (min walls, watertight meshes) is checked. Renders of start and exploded or mid-path states are written. No physical print is required.