Sandflow's sand3d Lets AI Generate 3D Objects Using 6x Fewer Tokens

Sandflow's sand3d turns 3D modeling into short Python programs that LLMs can write in a few hundred tokens, with datasets of real objects.

·
·
·
Sandflow's sand3d Lets AI Generate 3D Objects Using 6x Fewer TokensPRO
  • sand3d is an Apache-2.0 Python library for writing 3D objects as short, LLM-friendly programs on top of Blender.
  • A part takes 2 to 6 times fewer tokens than Blender Python, CadQuery or FeatureScript equivalents.
  • The entire API fits in roughly 3,600 tokens, so it can live in a system prompt.
  • Parts, edges and faces are addressed by name, and programs are bit-for-bit deterministic.
  • One call exports to GLB, URDF, USDA, OBJ or STL for web, robotics sim and CAD pipelines.
  • Five Hugging Face datasets provide sand3d programs for Objaverse, CAD, Articraft, SimReady and AutoMate objects.

AI systems that emit raw mesh data spend tokens describing thousands of vertices while discarding the object’s editable structure. Sandflow has released sand3d on GitHub, an Apache 2.0 library that represents a 3D object as a short Python program with named parts, edges, faces and joints. A model can generate the program, a developer can inspect it, and either can revise individual components later.

Built on Blender’s bpy module, sand3d exposes a flat set of functions for drawing profiles, creating solids, editing geometry, positioning frames, defining joints and assembling parts. Those functions form a compact modeling language while the resulting object remains an ordinary Blender scene.

Python becomes the 3D format

Sandflow’s benchmark reports that sand3d uses between one-half and one-sixth as many tokens per part as equivalent Blender Python, CadQuery or FeatureScript code. The complete API reference occupies about 3,600 model tokens, making it small enough to include in a system prompt alongside instructions and the requested object specification.

Bar chart comparing tokens per part across Blender Python, CadQuery, FeatureScript, Articraft SDK and sand3d
Sandflow’s comparison of tokens required to describe each part.

The API builds geometry through operations that map cleanly to modeling concepts. A profile defines a 2D outline, an extrusion turns it into a solid, and operations such as holes and fillets modify named regions. Developers and models work with labels such as plate and top, reducing the coordinate bookkeeping common in procedural 3D scripts.

Pro article

This story is for Pro members

You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.

Trending
  • No trending articles

Comments

avatar

Next Reads