AI News
All projects
Library

sand3d: a Python library that lets LLMs write 3D objects as short, named programs

A Python library for writing 3D objects as short programs over Blender's bpy that models and people can both read, with export to common 3D, simulation and BIM formats.

sand3d by Sandflow-ai · 2,364 GitHub stars when we found it · added

sand3d is a Python library for writing 3D objects as short programs over Blender's bpy. The README lists profiles, solids, edits, frames, joints and assemblies, along with natural forms such as grass, moss, trees, water and rock. According to the README, a program states how a shape is made, part by part. That lets a model write one in a few hundred tokens while a person can still read it. The project's own per-part measurement puts the same parts at 4.0 times as many tokens in Blender Python, 2.3 in CadQuery, 6.0 in FeatureScript and 2.0 in the Articraft SDK.

The package installs with pip install sand3d. The README asks for Python 3.13 (recommended) or 3.11, with bpy supplied alongside: version 5.2 on 3.13 and 4.5 on 3.11. It says there is no bpy wheel for Python 3.12, nor for Intel Macs from 5.2 on. A single export call writes GLB, URDF, USDA, IFC, OBJ or STL, chosen by file extension. For LLM use, the author suggests putting docs/api.md in the system prompt, with llms.txt pointing the model to task guides it reads on demand. The README names no specific model or agent.

Some limits are stated plainly. Export leaves out curves, text and anything added with raw bpy. IFC GlobalId values depend on geometry and placement, so the README warns against using them to track parts across exports. Six datasets of sand3d programs are on Hugging Face under CC BY 4.0. The code is licensed under Apache 2.0.

In the author's words

3D modeling in Python, built for LLMs.

From the README or the author's post. We checked that the sentence is there, not that it is true.

When to reach for it

Useful when an LLM needs to produce parametric 3D parts with named joints and export them to URDF or USD for simulation, rather than having it write raw Blender or CadQuery code. The README's split of a program into a one-line-per-signature API file and on-demand task guides is a reusable pattern for keeping a model's context small.

See it

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it. How this list is made