Skip to content
MrWhite 白先生· @neuronxwhite · X·· 7 h agoFeaturedAI score78

Forma goes open source: a 3D modeling engine written in Rust lets AI write code to generate printable parts

Editorial summary

Forma was open-sourced on December 2. It is a lightweight 3D modeling engine written in Rust. AI can write code such as box(4, 2, 0.4) | cut(cyl(0.5, 1)) to generate parts and export .stl and .3mf files into slicing software. It also outputs four-view previews for AI self-checking, and running it does not require a GPU.

Why it matters

Using volume comparisons and the author's own test data, it presents an open-source engine aimed at AI code-based modeling that can output STL directly, along with its STEP precision limitations.

Back to English edition
Original text

让 AI 直接建能 3D 打印的零件,不用再装 Blender

Forma 是 12 月 2 日刚开源的 3D 建模引擎,Rust 写的,整个程序不到 2 MB,Blender 是 953 MB。AI 写几行 box(4, 2, 0.4) | cut(cyl(0.5, 1)) 这样的代码,它就生成零件,导出 .stl、.3mf 直接进切片软件,再出一张四视图预览让 AI 自己检查,不用显卡。上线不到一天,快 1,300 星。

怎么开始:

  1. 有 Node 就行:npx -y forma-3d eval
  2. 接进 Claude Code 或 Cursor:MCP 配置里填 npx -y -p forma-3d forma-3d-mcp
  3. 告诉 AI 零件尺寸,它写代码、看预览、再改

作者自己拿 12 个模型做了 6 种零件(法兰、螺母、杯子这类):写 Blender 脚本 3 次内做对约八成,换成 Forma 九成五,输出的 token 少了七成。

限制:导出的 .step 是一块块小平面拼的,圆孔不是真圆,要拿去 CAD 软件里接着改就不够用。

github.com/wrong-nebula/forma

Source: MrWhite 白先生 · x.com