# Flexi trex ## What this builds An original flexible tyrannosaur, modelled as code, with its own proportions (a large head, a heavy tail, short forelimbs). Segment clearances, a documented bend envelope, and wall thickness are checked the same way as a sibling articulated animal, but the dimensions and the pose file are specific to this figure. Renders are written. No physical print is required. This is not a branded toy's copy. Read `spekkr.inputs.json` first. `length` sizes the animal. `gap` and `wall` are the clearance and the shell. `arms` and `base` add features. `tool` is the modeller. ## Out of scope - A licensed film or toy character, or that brand's name in the id. - A physical print, or a claim of palaeontology beyond the playful proportions in design.md. - Paint or electronics. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. Proportions, gaps, bend - In the rest pose, the head length, hip height, and tail length match the ratios in `design.md` (scaled to `length`) within 2%. - Neighbouring segments are clear by `gap` within 0.05 mm. A scripted bend in `fixtures/trex-bend.json` stays inside the envelope and does not illegally intersect. - Min wall is at least `wall`, except documented thin teeth or claws down to 1.0 mm. Accept when: the ratios, the gaps, the bend, and the walls match. ### R2. Files and frames - Export a print-in-place mesh or parts plus a rest pose. Renders: rest, bent, a head close-up, and a logical explode. - One command builds, bends, checks, and writes the renders. No print. Accept when: the command passes for both tools, and an over-envelope bend is refused. ### R3. Inputs - Numeric inputs are read from `spekkr.inputs.json` and must stay inside the ranges in the Inputs table in `design.md`. - A value outside a range is refused before modelling, with a message that names the key. - Options add or remove the features in that table. The `tool` swap selects CadQuery or OpenSCAD; both must meet the same numbers. Accept when: default and one out-of-range value are handled as above, and a second legal input set still matches the formulas in `design.md`. ### R4. Checks and report - One command builds the model at the defaults and at the person's inputs, measures it against `design.md`, and writes a short report. - A model broken on purpose, for example a wall thinner than `wall`, must fail the report. - The command exports the files this spec asks for (STL, and STEP when the tool can). No physical print is required. Accept when: the report says pass at the defaults and at the person's inputs, and fail on a deliberately broken model. ## Verification Clearance, bend-envelope, and printability checks of the same class as the articulated axolotl are run against this figure's own dimensions and pose file. Rest and bent renders are written. No physical print is required. The id and the name do not use a trademarked toy brand. ## Definition of done - Every acceptance check above runs from one command, and all pass at the person's inputs. - A README says how to export, how far it may bend, and that a print is optional.