Sandflow-ai/sand3d

★ 729⑂ 84

3D modeling in Python, built for LLMs.

About Sandflow-ai/sand3d

Sandflow-ai/sand3d is an open-source project on GitHub, mainly written in HTML. 3D modeling in Python, built for LLMs. It currently holds 729 stars and 84 forks with 5 open issues, and was last pushed on 2026-11-06 (repository created 2026-11-03).

Project Overview

AI Homed tracks it on the Today's Trending board, currently at rank #81 with 0 new stars today.

GitHub Repository Details

Repository Sandflow-ai/sand3d · default branch main · size 24254 KB · watchers 3 · source: GitHub REST API and repository README

README

https://github.com/Sandflow-ai/sand3d/blob/HEAD/Sandflow  sand3d

3D modeling in Python, built for LLMs.

sand3d is a Python library for writing 3D objects as short programs: profiles, solids, edits, frames, joints and assemblies, over Blender's bpy. A program says how a shape is made, part by part and in its own words, so a model writes it in a few hundred tokens and a person can read it.

https://github.com/Sandflow-ai/sand3d/blob/HEAD/Objects written in sand3d

https://github.com/Sandflow-ai/sand3d/blob/HEAD/ Website · https://github.com/Sandflow-ai/sand3d/blob/HEAD/ Docs · https://github.com/Sandflow-ai/sand3d/blob/HEAD/ Datasets · https://github.com/Sandflow-ai/sand3d/blob/HEAD/ Explorer

https://github.com/Sandflow-ai/sand3d/blob/HEAD/License: Apache-2.0 https://github.com/Sandflow-ai/sand3d/blob/HEAD/Python 3.11 and 3.13 https://github.com/Sandflow-ai/sand3d/blob/HEAD/bpy 4.5 and 5.2 https://github.com/Sandflow-ai/sand3d/blob/HEAD/tests

Why sand3d

https://github.com/Sandflow-ai/sand3d/blob/HEAD/Tokens per part, median: the same part takes 4.0 times sand3d's tokens in Blender Python, 2.3 in CadQuery, 6.0 in FeatureScript, 2.0 in the Articraft SDK
How it is measured, part by part

A whole object, part by part

https://github.com/Sandflow-ai/sand3d/blob/HEAD/A washing machine written in sand3d: its part tree, its four joints, and the three files it exports

A front-loading washing machine in 38 lines of code (play it and read it): the cabinet, the drum, the door with its glass and handle, the detergent drawer and the dial, each a named part, and four joints that say how they move.

door = s3d.group("door", ring, glass, handle)                      # the handle and the glass move with it
s3d.joint("door_hinge", door, hinge, axis="-Z", range=(0, 143))
s3d.joint("drum_spin", drum, front.move(0, 400), kind="continuous")
s3d.joint("drawer_slide", drawer, top_band.move(150), kind="prismatic", axis="+X", range=(0, 200))
s3d.joint("dial_turn", dial, top_band.move(-150), kind="continuous")
return s3d.assembly("washing_machine", cab, drum, door, drawer, dial, front=front)

Export: GLB, URDF, USD, OBJ, STL

One call; the file's extension names the format; lengths in metres.

s3d.export(machine, "washer.glb")    # or .urdf, .usda, .obj, .stl

| format | what it carries | for | |---|---|---| | GLB | meshes, materials, the joints in each node's extras, at the current pose | the web, viewers, game engines | | URDF | a link per moving part, its joints and their limits, at rest; OBJ meshes beside it | ROS, PyBullet, MuJoCo, Isaac | | USDA | the same tree in OpenUSD (UsdGeom, UsdPhysics), with the materials | Omniverse, Isaac Sim, USD pipelines | | OBJ, STL | the meshes alone, at the current pose: OBJ Y up, binary STL Z up | any 3D tool, slicers |

.usd, .usdc and .usdz come from the .usda through USD's own tools (usdcat, usdzip). The scene is also an ordinary Blender scene, for anything else Blender writes.

Install

Python 3.13 (recommended) or 3.11. Blender comes with it, as the bpy module: 5.2 LTS on Python 3.13, 4.5 LTS on Python 3.11; CI runs bpy 5.2.

pip install sand3d        # or, in a uv project: uv add sand3d

bpy has no wheel for Python 3.12, nor for Intel Macs from 5.2 on: there, use Python 3.11.

A first program

https://github.com/Sandflow-ai/sand3d/blob/HEAD/The bracket
import sand3d as s3d

def bracket(w=80, d=40, t=6, hole_d=6.6, pitch=50): plate = s3d.extrude("plate", s3d.rect(w, d, r=4), t) s3d.hole(plate, hole_d, on=s3d.grid(2, 1, pitch, 0)) s3d.fillet(plate, 1, edges="top") return plate

s3d.export(bracket(), "bracket.glb")

Millimetres by default. Every verb with code that runs and its render: the quickstart; objects to play joint by joint: the gallery; every signature: the API. The programs themselves: docs/examples/ and programs/.

Give it to your LLM

Put docs/api.md in the system prompt: the rules of the vocabulary, every signature, and worked examples, in about 3 600 tokens; llms.txt points a model at it. For objects of several parts, the guidelines give the eight rules of an assembly program: the plan first, then the details, then the parts.

What is in it

Everything on one flat s3d. surface:

| family | verbs | |---|---| | profiles | rect circle slot polygon poly arc spline superellipse text offset stroke … (16) | | solids and paths | extrude revolve sweep loft wire helix box cylinder tube sphere torus dome … (15) | | edits | cut join intersect split hole pocket fillet chamfer shell dent … (15) | | frames and placement | Frame face edge bbox local at transform grid ring along snap | | articulation | joint pose seat | | assembly | group assembly attach export units fingerprint … (8) | | parts and materials | gear knurl thread material |

No category verbs (chair(), table()): a category is a program written in sand3d.

Datasets

sand3d programs for five sources of 3D objects, on Hugging Face under CC BY 4.0.

https://github.com/Sandflow-ai/sand3d/blob/HEAD/sand3d-objaverse
sand3d-objaverse · Objaverse
Everyday objects from Objaverse, each rebuilt as a program.
https://github.com/Sandflow-ai/sand3d/blob/HEAD/sand3d-cad
sand3d-cad · CAD
Mechanical parts from public CAD models.
https://github.com/Sandflow-ai/sand3d/blob/HEAD/sand3d-articraft
sand3d-articraft · Articraft
Articulated objects from Articraft, their joints declared.
https://github.com/Sandflow-ai/sand3d/blob/HEAD/sand3d-simready
sand3d-simready · SimReady
Simulation-ready assets from NVIDIA SimReady.
https://github.com/Sandflow-ai/sand3d/blob/HEAD/sand3d-automate
sand3d-automate · AutoMate
Mechanical assemblies from AutoMate, each part a function of its program.

Browse them in the explorer, or all five in the collection.

Citation

If you use sand3d in your work, please cite it. CITATION.cff holds the same, and GitHub shows it as "Cite this repository".

@misc{sand3d2026,
  author = {Neveu, Thibault and Loy, Andr{\'e}a},
  title  = {sand3d},
  year   = {2026},
  note   = {Version 1.6.3},
  url    = {https://github.com/Sandflow-ai/sand3d}
}

Contributing and license

How the library is built, tested and versioned: CONTRIBUTING.md. Apache License 2.0: see LICENSE.

GitHub Stars & Activity

729Stars
84Forks
5Open issues
HTMLLanguage

GitHub Popularity

GitHub stars729
Forks84
Open issues5
Primary languageHTML
LicenseApache-2.0
Stars gained today0
Created2026-11-03
Last pushed2026-11-06

Trending History

Daily boardrank #81 · ▲ 0 stars

Related AI Projects

1

Manavarya09 / design-extract

HTML★ 4,815⑂ 405▲ 44 stars
→
2

plannotator / effective-html

HTML★ 4,033⑂ 278▲ 128 stars
→
3

naveedharri / baalda

HTML★ 287⑂ 59▲ 6 stars
→
4

morluto / rea

TypeScript★ 437,454⑂ 0
→
5

mattpocock / skills

Shell★ 316,511⑂ 26,477▲ 2,058 stars
→
6

obra / superpowers

Shell★ 313,517⑂ 27,892▲ 644 stars
→
7

affaan-m / ECC

JavaScript★ 298,458⑂ 0
→
8

deepseek-ai / deepseek-harness

TypeScript★ 274,818⑂ 0
→

More AI Rankings