1MB Rust 3D Engine Forma Tested: AI Writes Pipeline Scripts to Generate CAD Models
The author tested the 1MB Rust 3D engine Forma v0.4.5 and its MCP tools in a pure CPU environment on Windows 11, verifying its millisecond-level watertight solid generation, transaction rollback, and multi-format export capabilities. Tests show that by utilizing a pipeline DSL and semantic edge selection, it can rapidly generate non-intersecting brackets and directly output four-view and engineering drawings. However, the exported STEP files are faceted discretizations and cannot replace Blender's realistic rendering.
The author tested the 1MB Rust 3D engine Forma and its MCP functionality in a zero-GPU environment, providing specific performance data and pitfalls to help readers evaluate the practical efficacy of lightweight 3D generation and AI scripting workflows.

先给结论(2026.12.04 Win11 零显卡实测):48 小时飙至 6,699 Stars 的纯 Rust 3D/CAD 引擎 wrong-nebula/forma(GPL-3.0,今日刚发 v0.4.5),我实测了 npx -y forma-3d 与 forma-3d mcp:forma.wasm 仅 1,028.4 KB(1.0 MB),4 个 MCP 工具总共才吃 2.69 KB(约 725 Token)还带 tx(rollback) 事务回滚;10 行管道脚本 34.71 ms 算完倒角多孔支架,零显卡直出四视图 PNG(68 KB)与工程蓝图 SVG(78.6 KB)。但它不能替代 Blender 写实渲染,导出 .step 为多面体离散(非 NURBS),且多组件漏加 --scene 会丢光前面所有零件。
前几天测过近 1 GB 的 Blender 5.3 MCP,大模型写 bpy 脚本极易 Z-up 穿模切头。forma 用纯 Rust 重写了专为 AI Agent 服务的无头 3D 多面体内核,改用管道 DSL(box | bevel | cut)和语义选边("top_rim")。今天在 Win11 纯 CPU 下全链路实测一轮。
一、1.0MB WASM 零安装开跑:4 个工具仅 725 Token,还带事务回滚
- 极轻上下文:npx -y forma-3d mcp 仅暴露 eval / inspect / tx / export 4 个工具(Schema 2.69 KB,总计约 725 Token),forma-3d spec 语法参考仅 1,425 字符;
- 事务回滚(tx)真机实测:tx(begin) → 建倒角底座 → 故意传 unknown_op 99 报错 → tx(rollback) 后调 inspect() 直接回到 parts=0 sync: rev=r0,彻底告别脏场景残留。

二、34.71ms 建好镂空支架:水密检验、截面面积与多格式导出实测
10 行脚本写一个 80×50×8 mm 倒角带 5 通孔支架,Win11 纯 CPU 内核计算仅 34.71 ms(含 npx 拉起 1.12s),直接返回 V=341 F=698 WT=ok NM=0 B=0 g=5 vol=27212.008 与 2D 截面面积 3422.6575 mm²——严格水密零破孔。实测导出体积:.glb 21.1 KB、.stl 34.2 KB、.3mf 43.4 KB、.step 483.7 KB、.svg 工程蓝图 78.6 KB。

三、Win11 实测活捉 3 个暗坑:漏加 --scene 直接把零件丢光!
- 暗坑 1(漏加 --scene 丢件):3 组件台灯装配体计算仅 15.82 ms,但默认不加 --scene(MCP 不传 scene=true)时只导出、只渲染最后一个部件灯罩,底座和铜杆全丢!加上 --scene 才完整零穿模贴合;
- 暗坑 2(CLI 重复 --out 只认末项):连写多个 --out 只会落盘最后一个格式,批量导出请走 MCP export(paths=[...]);
- 暗坑 3(严格模式秒拦):传零厚度 sheet(..., t=0.0) 1 秒报错退出(rc=1),不把破面留到切片阶段。

四、1MB Forma 真能替代 Blender 吗?实测完说句公道话
结论:不能互相替代,但合体最香。Forma 内置渲染仅限扁平四视图棚拍(无光追写实),且 .step 为多面体离散实体(非工业 NURBS 曲面),3D 打印与结构件首选 Forma,写实大片还是得回 Blender。

Win11 MCP 客户端即插即用配置:
{"mcpServers":{"forma":{"command":"npx","args":["-y","-p","forma-3d","forma-3d-mcp"]}}}
最佳工作流:用 Forma 毫秒级造出零穿模、水密过检的 .glb 白模,再丢进 Blender 调材质灯光出大片。参考来源:github.com/wrong-nebula/forma(6,699 Stars,v0.4.5)、npmjs.com/package/forma-3d。你会更倾向让 AI 画精确 CAD 零件,还是用 Blender MCP 调大场景光影?欢迎评论区聊聊。
Source: 楚天问 · x.com