mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
The rules are raea/goal's (sdk/goal), run by `raea goal check` at four moments: the hook after a save, every render's end, raea cloud's publish, and the Stop hook. Rust's cut and goal gates and the box's word, sound, frame and place checks are packs (MK30-MK39); runtime/cut-plan, runtime/goal-plan, raea make status and the box's check code are gone with no alias (MK41). brief.ts is the one registered root (MK43): raea runs it, and every file that imports raea must be reached from it (the registered check, an error at publish and done). Its tasks are its `plan` (MK44), read from its run and written back where each is written by `raea goal tasks`, the one path for the app, agents and the box. Its `goal` is one goal or a workflow of several (MK46), each with its step, after and rules, checked and reported alone. Taste lines and signed asks run inside the loop (MK47). `raea goal check|tasks|seen|judge|gates|next` is the loop; `raea make clothes|motion|solid|wear|splat|physics|bake| sao|tokensynth|sounds|component|blockout|...` the asset tools (MK45). Old names are refused with where they went. docs/make.feature is docs/goal.feature; tools/legacy-names.sh holds the old names out. raea's Node mode on JavaScriptCore now gives a CommonJS package's names as named exports (React's jsx), loads a file a tool imports by URL, keeps process.exit's code from a promise callback, and reads stdin as fd 0, so the goal runner runs on the shipped binary.
2.4 KiB
2.4 KiB
title, summary, order, sources
| title | summary | order | sources | ||
|---|---|---|---|---|---|
| raea make solid | Measure, view and export a solid: parts built from code with exact volumes, joints and parameters. | 104 |
|
A solid is a TypeScript file that builds 3D parts from shapes, with parameters you can change. raea make 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 make solid info chair.ts --json
raea make solid info chair.ts --set legs=3,height=0.9 # with the change, and what it changed
raea make solid info chair.ts --walk # every parameter at each end of its range
raea make solid view chair.ts -o views/
raea make solid export chair.ts -o chair.glb --part seat --colour '#c08040'
Usage
raea make solid info FILE.ts [--json] [--set k=v,...] [--expect E.json] [--walk] (volume, box, pieces, genus per part; joints; predictions and mutants)
raea make solid view FILE.ts -o DIR [--set k=v,...] [--json] (the solid's parts in colour and clay from fixed cameras)
raea make 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. |