usd-brep-brewer
v0.1.5
Published
A headless CAD for coding agents, built on NVIDIA's USD BRep.
Readme
usd-brep-brewer
A headless CAD for coding agents, built on NVIDIA's USD BRep.
https://github.com/user-attachments/assets/93e992c3-c0b0-4f8a-820f-afd13207484b
Getting started
Requires
- Docker
- Node.js 18+
Steps
Start the viewer (keep it running)
npx -y usd-brep-brewer viewNew
npx -y usd-brep-brewer new helloEdit
jobs/hello/gen.py.Run
npx -y usd-brep-brewer run helloOpen
http://localhost:3000/?job=hello
- Jobs live in
./jobs/<job-id>/under the current directory. - Set
PORTto change the viewer port.
Colors
To color parts, have gen.py write /work/colors.json: keys are brep indices (the order the breps were passed to out.usda, from 0) as strings, values are "#rrggbb", e.g. {"45": "#ff7800", "46": "#ff7800"}. Breps not listed stay gray. Each brep's color is also in report.json (breps[i].color); bad JSON, out-of-range indices or non-#rrggbb values are reported in errors and make ok false.
