Files
raea/docs/manual/reference/cli/solid.md
T
shinyobjectz 2881f190bb Docs: a page for every CLI verb and every SDK import path on raea.io/docs
The CLI reference is now 43 pages, one a verb, each with its forms, where it runs and what each of its 164 flags does,
under docs/manual/reference/cli. The forms and flags are generated from `raea help --json`; the prose and the flag
descriptions are written by hand, kept by the generator, and checked: a new flag without a description fails.

The SDK reference is 28 pages, one an import path, under docs/manual/reference/sdk: every export with its doc, its
signature, a component's props, a class's members, its Bevy type and the parity ports and examples that use it,
generated by the TypeScript compiler, with a hand-written introduction and a type-checked example on each page.
Where the SDK mirrors a Bevy type without a comment of its own, Bevy's own doc is shown, marked as Bevy's
(tools/manual-ref/bevy-docs.json). Doc comments added to the SDK exports that had none.

tools/manual-ref.sh gen|check runs both generators.
2026-11-08 19:43:15 -08:00

2.3 KiB
Raw Blame History

title, summary, order, sources
title summary order sources
raea solid Measure, view and export a solid: parts built from code with exact volumes, joints and parameters. 45
apps/solid/src/lib.rs
apps/solid/src/export.rs

A solid is a TypeScript file that builds 3D parts from shapes, with parameters you can change. raea solid info measures each part: volume, bounding box, how many pieces, genus, and the joints between parts. It can compare the result with what you expected, and show how each parameter changes the shape. view draws the parts from fixed cameras, in colour and clay. export writes one .glb for a Blender step and reads it back to check it.

raea solid info chair.ts --json
raea solid info chair.ts --set legs=3,height=0.9          # with the change, and what it changed
raea solid info chair.ts --walk                           # every parameter at each end of its range
raea solid view chair.ts -o views/
raea solid export chair.ts -o chair.glb --part seat --colour '#c08040'

Usage

raea solid info FILE.ts [--json] [--set k=v,...] [--expect E.json] [--walk]   (volume, box, pieces, genus per part; joints; predictions and mutants)
raea solid view FILE.ts -o DIR [--set k=v,...] [--json]   (the solid's parts in colour and clay from fixed cameras)
raea solid export FILE.ts -o OUT.glb [--set k=v,...] [--part NAME] [--colour #RRGGBB]   (the solid as one .glb for a Blender step, read back and checked)

Headless: it needs nothing running and opens no window. Takes up to 2 arguments besides its flags.

Flags

Flag Takes What it does
--colour #RRGGBB With export: the colour the exported mesh carries.
--expect E.json What the parts should measure, checked against what they do. FILE.expect.json beside the solid is read by default.
--json – Print the measurements as JSON.
--part NAME With export: only this part.
--set k=v,... Change parameters for this run, as name=value pairs; info also reports what the change changed.
--walk – With info: set each parameter to each end of its range in turn and report what moves.
-o DIR Where view writes its sheets, or where export writes the .glb.