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

Merge pull request #14 from dgertenbach/export-model-units

wrong-nebulacba38619bbc2
diff --cc crates/forma-cli/src/main.rs
index 31a69f8,eded8d7..e40cd7a
--- a/crates/forma-cli/src/main.rs
+++ b/crates/forma-cli/src/main.rs
@@@ -13,10 -13,10 +13,10 @@@ use std::process::{self, Command}
fn print_help() {
println!(
- "forma 0.4.1 — ultra-fast, headless, watertight, LLM-native 3D modeling engine\n\
+ "forma 0.4.2 — ultra-fast, headless, watertight, LLM-native 3D modeling engine\n\
\n\
USAGE:\n\
- forma eval [--dialect pipe|compact] [--strict|--no-strict] [--json] [--out path.(glb|obj|stl|3mf|step|blend)] [--render preview.png] [--draw blueprint.svg] [file|-]\n\
+ forma eval [--dialect pipe|compact] [--unit m|cm|mm|um|in|ft] [--strict|--no-strict] [--json] [--out path.(glb|obj|stl|3mf|step|blend)] [--render preview.png] [--draw blueprint.svg] [file|-]\n\
forma render [--size 512] --out preview.png [file|-]\n\
forma draw --out blueprint.svg [file|-]\n\
forma spec [--dialect pipe|compact] [--gbnf]\n\
diff --cc crates/forma-server/src/main.rs
index 8941f9d,6078592..1884ba0
--- a/crates/forma-server/src/main.rs
+++ b/crates/forma-server/src/main.rs
@@@ -5,10 -5,10 +5,10 @@@
//! asset processing (import .glb/.obj/.stl -> decimate/transform/boolean -> export).
//!
//! Endpoints:
-//! GET /health -> {"status":"ok","version":"0.4.1","workers":N}
+//! GET /health -> {"status":"ok","version":"0.4.2","workers":N}
//! GET /spec[?gbnf=1] -> Forma-Pipe language spec or GBNF grammar
- //! POST /v1/eval -> Evaluate Forma-Pipe with optional base64 in-memory `assets`
- //! POST /v1/process -> Direct asset processor (import -> decimate/scale/center_z0 -> export)
+ //! POST /v1/eval -> Evaluate Forma-Pipe with optional base64 in-memory `assets` and model `unit` (default m)
+ //! POST /v1/process -> Direct asset processor (import -> decimate/scale/center_z0 -> export; optional `unit`)
use forma_core::{MeshInvariants, Scene};
use forma_lang::{eval_script, Dialect, SPEC_COMPACT, SPEC_PIPE, SPEC_PIPE_GBNF};