跳到正文
CuteGuy☣️· @cutetoxicguy · X·· 26 天前精选AI 评分76

Sandflow 发布 sand3d 开源 Python 库,支持 AI agent 构建可动 3D 资产

AI 导读

Sandflow 发布开源 Python 库 sand3d,供 LLM 和 AI coding agent 以较短程序创建带尺寸、组件和机械关节的3D资产。开发者展示了用38行代码构建可动洗衣机,API约含3,600个token,并支持导出 GLB、URDF、USD、OBJ 和 STL。

推荐理由

sand3d将面向语言模型的建模词汇与关节关系封装进较短的程序接口,展示了AI agent生成结构化可编辑3D资产的工作流。

正文 · 原文

🧊 An AI agent can now build a complete 3D washing machine with moving parts in just 38 lines of code. No complicated Blender scripting required.

Sandflow has released sand3d, an open-source Python library designed specifically for LLMs and AI coding agents.

Instead of forcing an AI to write hundreds of lines of Blender Python, sand3d provides a compact modeling vocabulary for creating geometry, assembling objects, and defining mechanical movement.

And the results are actual 3D assets, not just rendered images.

🔧 What can sand3d create?

▪️ 3D geometry with precise dimensions, profiles, holes, and curved surfaces.

▪️ Complex assemblies made from individually named components.

▪️ Mechanical joints, hinges, sliders, and rotating parts.

▪️ Parametric objects that can be modified by changing a few values.

▪️ Exportable models for games, CAD workflows, and robotics simulators.

🧺 A complete washing machine in 38 lines

The developers demonstrate a washing machine with:

▪️ A cabinet and internal rotating drum.

▪️ A hinged door with glass and handle.

▪️ A sliding detergent drawer.

▪️ A rotating control dial.

The assembly includes four defined joints, so its components can move independently.

You can inspect the object in an interactive viewer and manipulate individual joints.

⚡ Up to 6× fewer tokens

Sandflow compared its code against other procedural modeling systems.

Median token-count ratios:

▪️ Blender Python: 4.0× as many tokens.

▪️ CadQuery: 2.3×.

▪️ FeatureScript: 6.0×.

▪️ Articraft SDK: 2.0×.

These are developer-reported comparisons on selected CAD and articulated objects, not a universal measure of model-generation performance.

🧠 The entire API fits into approximately 3,600 tokens.

That's one of the most interesting details.

An AI agent can receive the complete API reference in its context, then use a relatively small vocabulary to construct objects programmatically.

Parts, faces, and edges are referenced by name rather than manually calculating every coordinate.

The process is deterministic: running the same program produces the same mesh.

📦 Export to real 3D workflows

▪️ GLB: Meshes, materials, and joint metadata for viewers and game engines.

▪️ URDF: Articulated structures with joint limits for MuJoCo, Isaac, ROS, and other robotics tools.

▪️ USD: Structured scenes for OpenUSD workflows.

▪️ OBJ / STL: Static geometry for conventional 3D tools and fabrication.

🚀 Open source and ready to install

pip install sand3d

The library runs on Blender's bpy engine and supports Python 3.11 and 3.13. Python 3.12 is currently unsupported.

Sandflow also provides a collection of approximately 100,000 programmatically described 3D assets, with datasets available on Hugging Face.

Everything is released under Apache 2.0.

One important distinction: sand3d isn't a generative AI model itself. It's a modeling toolkit that lets language models produce executable 3D programs.

And that's potentially even more useful for certain workflows.

Instead of generating a mesh that's difficult to modify, an agent can create structured, editable geometry with explicit components and mechanical relationships.

A promising direction for AI-assisted CAD, game assets, robotics, and procedural 3D production.

🌐 sandflow.ai/sand3d/

💻 github.com/Sandflow-ai/sand3d

#3DModeling #AIagents #OpenSource #Blender

来源:CuteGuy☣️ · x.com