A 1.2 MB pure-Rust rewrite of headless Blender built for AI agents — 3D B-rep modeling engine, CLI, and MCP server
Forma Benchmarks & Verification Suite
Independent geometric verification, LLM benchmark harnesses, and archived evaluation logs for Forma.
Requirements
- Python 3.10+ with
trimesh,scipy,numpy,tiktoken(andmatplotlibfor chart generation). - Compiled Forma binaries (
cargo build --release). - Optional: local Blender executable for
bpycomparison /.blendimport checks. SetBLENDER_BIN=/path/to/blenderifblenderis not onPATH. - Optional:
OPENROUTER_API_KEYfor running LLM evaluation matrices (eval_baseline.py,eval_ablation.py,eval_matrix.py).
Key Scripts
| Script | Purpose |
|---|---|
verify.py |
Independent mesh verifier (trimesh + scipy Chamfer, Hausdorff-99, Generalized Winding Number IoU, watertight/non-manifold checks, 16-layer slicing, Blender import check). |
tasks.py |
Canonical 12-task exact-dimension benchmark definitions and Blender reference generators (ref_meshes/*.glb). |
gate_verify.py |
End-to-end automated verification gate across all 12 canonical geometries, MCP token budget, binary footprint, and fuzz suite. |
verify_tier1_parity.py |
Parity checks for deformers, curves, LSCM UV packing, QEM decimation, and Surface Nets remeshing against Blender. |
eval_baseline.py / eval_ablation.py / eval_matrix.py |
Multi-model LLM evaluation harnesses (bpy vs Forma-Pipe / Forma-DSL). |
Run scripts directly from the repository root (e.g. python3 bench/gate_verify.py).
Archived Optimization Scripts & Results
results/stores the raw JSON/JSONL trial logs referenced bydocs/EXTENDED_BENCHMARK_REPORT.mdand the archived reports indocs/.colab_autoresearch.py,colab_autoresearch_w2.py,colab_autoresearch_w3.py, andnotebooks/forma_autoresearch_colab.ipynbare historical optimization scripts written against earlier intermediate commits (their embedded source patches have already been integrated intocrates/forma-coreand are not intended to be re-applied onmain).