# Design This file fixes the geometry. How the model's code is organised is up to you, as long as the numbers here hold. ## Formulas Outside is inside plus two walls, plus a documented rib. Closed height, groove (width 3.2, depth 1.8, unless the file says otherwise), and latch engagement (2.0 mm) are `fixtures/rugged-measures.json`. ## Print Base open up, lid groove up. Overhangs ≤ 45°, min wall `wall` except the groove neck. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `inner_length` | Inside length, mm | 120 | From 60 to 300. | | `inner_width` | Inside width, mm | 80 | From 40 to 200. | | `inner_height` | Inside height, mm | 50 | From 25 to 150. | | `wall` | Wall thickness, mm | 3.0 | From 2.0 to 6. | | `gasket` | A gasket groove | on | A groove in the lid path, sized in design.md. | | `latches` | Latches | on | Two latch features, with a documented engagement. | | `tool` | Modelling tool | cadquery | CadQuery writes STEP and STL. OpenSCAD writes STL. | ## Acceptance at the defaults Millimetres. Default inner length 80, inner width 50, inner height 30, wall 2.4, gasket and latches on. | Quantity | Value | Tolerance | Source | | --- | --- | --- | --- | | Closed overall X, Y, Z | 84.80, 54.80, 36.80 | 0.10 | `inner + 2*wall` in X and Y; Z includes lid | | Wall thickness | 2.40 | 0.05 | `wall` | | Gasket groove width, depth | 2.00, 1.20 | 0.05 | When `gasket` is on | | Latch engagement | 3.00 | 0.10 | Two latches, opposite short sides | | Rib height on the outside | 1.60 | 0.10 | Around the body | The closed assembly has no intersection except the documented latch contact of at most 0.05 mm. Both parts are printable without support over 45 degrees except the listed latch underside. ## 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` | Closed box 84.8 × 54.8 × 36.8 mm | | `shots/open.png` | Base and lid, gasket groove visible | ## 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. Lid and base fit, latch engagement, gasket-groove dimensions, and stack height are measured on the meshes. Exploded and closed renders are written. No physical print, no real gasket, and no waterproofness test are required.