Skip to content

armgit / forma

Public Imported from GitHub
0

A 1.2 MB pure-Rust rewrite of headless Blender built for AI agents — 3D B-rep modeling engine, CLI, and MCP server

2.1 KB
Raw Blame

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 (and matplotlib for chart generation).
  • Compiled Forma binaries (cargo build --release).
  • Optional: local Blender executable for bpy comparison / .blend import checks. Set BLENDER_BIN=/path/to/blender if blender is not on PATH.
  • Optional: OPENROUTER_API_KEY for 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 by docs/EXTENDED_BENCHMARK_REPORT.md and the archived reports in docs/.
  • colab_autoresearch.py, colab_autoresearch_w2.py, colab_autoresearch_w3.py, and notebooks/forma_autoresearch_colab.ipynb are historical optimization scripts written against earlier intermediate commits (their embedded source patches have already been integrated into crates/forma-core and are not intended to be re-applied on main).