[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108719":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":34,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":16,"starSnapshotCount":16,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},108719,"sand3d","Sandflow-ai\u002Fsand3d","Sandflow-ai","3D modeling in Python, built for LLMs.","https:\u002F\u002Fsandflow.ai\u002Fsand3d\u002F",null,"HTML",2257,245,13,15,0,14,174,1578,72,109.17,"Apache License 2.0",false,"main",true,[27,28,29,30,31,32,33],"3d","blender","cad","llm","procedural-modeling","python","usd","2026-11-23 16:02:04","2026-11-23 19:58:46","\u003Ch1>\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fsandflow-symbol-white.svg\">\n    \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fsandflow-symbol-black.svg\" alt=\"Sandflow\" height=\"26\">\n  \u003C\u002Fpicture>\n  &nbsp;sand3d\n\u003C\u002Fh1>\n\n**3D modeling in Python, built for LLMs.**\n\nsand3d is a Python library for writing 3D objects as short programs: profiles, solids,\nedits, frames, joints and assemblies, over Blender's `bpy`. A program says *how* a shape\nis made, part by part and in its own words, so a model writes it in a few hundred tokens\nand a person can read it.\n\n\u003Cp align=\"center\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fhero.png\" alt=\"Objects written in sand3d\" width=\"830\">\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fsandflow.ai\u002Fsand3d\u002F\">\u003Cpicture>\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fsandflow-symbol-white.svg\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fsandflow-symbol-black.svg\" alt=\"\" height=\"16\" align=\"absmiddle\">\u003C\u002Fpicture>&nbsp;Website\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fsand3d.sandflow.ai\u002F\">\u003Cpicture>\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Flucide-book-open-white.svg\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Flucide-book-open.svg\" alt=\"\" height=\"16\" align=\"absmiddle\">\u003C\u002Fpicture>&nbsp;Docs\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fcollections\u002FSandflow\u002Fsand3d-6aec268fbdcd3bc174236168\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fhf-logo.svg\" alt=\"\" height=\"16\" align=\"absmiddle\">&nbsp;Datasets\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fspaces\u002FSandflow\u002Fsand3d-explorer\">\u003Cpicture>\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Flucide-box-white.svg\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Flucide-box.svg\" alt=\"\" height=\"16\" align=\"absmiddle\">\u003C\u002Fpicture>&nbsp;Explorer\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSandflow-ai\u002Fsand3d\u002Fblob\u002Fmain\u002FLICENSE\">\u003Cimg alt=\"License: Apache-2.0\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-Apache--2.0-793CFF\">\u003C\u002Fa>\n  \u003Cimg alt=\"Python 3.11 and 3.13\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.11%20%7C%203.13-121117\">\n  \u003Cimg alt=\"bpy 4.5 and 5.2\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fbpy-4.5%20%7C%205.2-121117\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSandflow-ai\u002Fsand3d\u002Factions\u002Fworkflows\u002Ftests.yml\">\u003Cimg alt=\"tests\" src=\"https:\u002F\u002Fgithub.com\u002FSandflow-ai\u002Fsand3d\u002Factions\u002Fworkflows\u002Ftests.yml\u002Fbadge.svg\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n## Why sand3d\n\n\u003Cp align=\"center\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Ftokens.png\" alt=\"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\" width=\"830\">\u003Cbr>\n\u003Ca href=\"https:\u002F\u002Fsand3d.sandflow.ai\u002Ftokens.html\">How it is measured, part by part\u003C\u002Fa>\u003C\u002Fp>\n\n- **Short.** A part takes 2 to 6× fewer tokens than the same part in Blender Python, CadQuery or FeatureScript ([details](https:\u002F\u002Fsand3d.sandflow.ai\u002Ftokens.html)).\n- **The whole API fits in a prompt**, about 3,600 tokens ([the API](https:\u002F\u002Fsand3d.sandflow.ai\u002Fapi.html)).\n- **Named, not computed.** Parts, edges and faces are reached by name, never by hand-computed coordinates.\n- **Deterministic.** The same program builds the same mesh, bit for bit.\n\n## A whole object, part by part\n\n\u003Cp align=\"center\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fwasher.png\" alt=\"A washing machine written in sand3d: its part tree, its four joints, and the three files it exports\" width=\"830\">\u003C\u002Fp>\n\nA front-loading washing machine in 38 lines of code ([play it and read it](https:\u002F\u002Fsand3d.sandflow.ai\u002Fgallery.html)):\nthe cabinet, the drum, the door with its glass and handle, the detergent drawer and the dial,\neach a named part, and four joints that say how they move.\n\n```python\ndoor = s3d.group(\"door\", ring, glass, handle)                      # the handle and the glass move with it\ns3d.joint(\"door_hinge\", door, hinge, axis=\"-Z\", range=(0, 143))\ns3d.joint(\"drum_spin\", drum, front.move(0, 400), kind=\"continuous\")\ns3d.joint(\"drawer_slide\", drawer, top_band.move(150), kind=\"prismatic\", axis=\"+X\", range=(0, 200))\ns3d.joint(\"dial_turn\", dial, top_band.move(-150), kind=\"continuous\")\nreturn s3d.assembly(\"washing_machine\", cab, drum, door, drawer, dial, front=front)\n```\n\n## Export: GLB, URDF, USD, OBJ, STL\n\nOne call; the file's extension names the format; lengths in metres.\n\n```python\ns3d.export(machine, \"washer.glb\")    # or .urdf, .usda, .obj, .stl\n```\n\n| format | what it carries | for |\n|---|---|---|\n| **GLB** | meshes, materials, the joints in each node's extras, at the current pose | the web, viewers, game engines |\n| **URDF** | a link per moving part, its joints and their limits, at rest; OBJ meshes beside it | ROS, PyBullet, MuJoCo, Isaac |\n| **USDA** | the same tree in OpenUSD (UsdGeom, UsdPhysics), with the materials | Omniverse, Isaac Sim, USD pipelines |\n| **OBJ**, **STL** | the meshes alone, at the current pose: OBJ Y up, binary STL Z up | any 3D tool, slicers |\n\n`.usd`, `.usdc` and `.usdz` come from the `.usda` through USD's own tools (`usdcat`,\n`usdzip`). The scene is also an ordinary Blender scene, for anything else Blender writes.\n\n## Install\n\nPython 3.13 (recommended) or 3.11. Blender comes with it, as the `bpy` module: 5.2 LTS on\nPython 3.13, 4.5 LTS on Python 3.11; CI runs bpy 5.2.\n\n```bash\npip install sand3d        # or, in a uv project: uv add sand3d\n```\n\n`bpy` has no wheel for Python 3.12, nor for Intel Macs from 5.2 on: there, use Python 3.11.\n\n## A first program\n\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fbracket.png\" alt=\"The bracket\" width=\"300\" align=\"right\">\n\n```python\nimport sand3d as s3d\n\ndef bracket(w=80, d=40, t=6, hole_d=6.6, pitch=50):\n    plate = s3d.extrude(\"plate\", s3d.rect(w, d, r=4), t)\n    s3d.hole(plate, hole_d, on=s3d.grid(2, 1, pitch, 0))\n    s3d.fillet(plate, 1, edges=\"top\")\n    return plate\n\ns3d.export(bracket(), \"bracket.glb\")\n```\n\nMillimetres by default. Every verb with code that runs and its render: [the quickstart](https:\u002F\u002Fsand3d.sandflow.ai\u002Fquickstart.html);\nobjects to play joint by joint: [the gallery](https:\u002F\u002Fsand3d.sandflow.ai\u002Fgallery.html); every signature: [the API](https:\u002F\u002Fsand3d.sandflow.ai\u002Fapi.html).\nThe programs themselves: [docs\u002Fexamples\u002F](https:\u002F\u002Fgithub.com\u002FSandflow-ai\u002Fsand3d\u002Ftree\u002Fmain\u002Fdocs\u002Fexamples\u002F) and [programs\u002F](https:\u002F\u002Fgithub.com\u002FSandflow-ai\u002Fsand3d\u002Ftree\u002Fmain\u002Fprograms\u002F).\n\n## Give it to your LLM\n\nPut [docs\u002Fapi.md](https:\u002F\u002Fgithub.com\u002FSandflow-ai\u002Fsand3d\u002Fblob\u002Fmain\u002Fdocs\u002Fapi.md) in the system prompt: the rules of the vocabulary, every\nsignature, and worked examples, in about 3 600 tokens; [llms.txt](https:\u002F\u002Fgithub.com\u002FSandflow-ai\u002Fsand3d\u002Fblob\u002Fmain\u002Fllms.txt) points a\nmodel at it. For objects of several parts, [the guidelines](https:\u002F\u002Fsand3d.sandflow.ai\u002Fguidelines.html) give\nthe eight rules of an assembly program: the plan first, then the details, then the parts.\n\n## What is in it\n\nEverything on one flat `s3d.\u003Cverb>` surface:\n\n| family | verbs |\n|---|---|\n| profiles | `rect` `circle` `slot` `polygon` `poly` `arc` `spline` `superellipse` `text` `offset` `stroke` … (16) |\n| solids and paths | `extrude` `revolve` `sweep` `loft` `wire` `helix` `box` `cylinder` `tube` `sphere` `torus` `dome` … (15) |\n| edits | `cut` `join` `intersect` `split` `hole` `pocket` `fillet` `chamfer` `shell` `dent` … (15) |\n| frames and placement | `Frame` `face` `edge` `bbox` `local` `at` `transform` `grid` `ring` `along` `snap` |\n| articulation | `joint` `pose` `seat` |\n| assembly | `group` `assembly` `attach` `export` `units` `fingerprint` … (8) |\n| parts and materials | `gear` `knurl` `thread` `material` |\n\nNo category verbs (`chair()`, `table()`): a category is a program written *in* sand3d.\n\n## Datasets\n\nsand3d programs for five sources of 3D objects, on Hugging Face under CC BY 4.0.\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FSandflow\u002Fsand3d-objaverse\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fdatasets\u002Fsand3d-objaverse.jpg\" alt=\"sand3d-objaverse\" width=\"240\">\u003C\u002Fa>\u003Cbr>\n      \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FSandflow\u002Fsand3d-objaverse\">\u003Cb>sand3d-objaverse\u003C\u002Fb>\u003C\u002Fa> · Objaverse\u003Cbr>\u003Csub>Everyday objects from Objaverse, each rebuilt as a program.\u003C\u002Fsub>\u003C\u002Ftd>\n    \u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FSandflow\u002Fsand3d-cad\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fdatasets\u002Fsand3d-cad.jpg\" alt=\"sand3d-cad\" width=\"240\">\u003C\u002Fa>\u003Cbr>\n      \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FSandflow\u002Fsand3d-cad\">\u003Cb>sand3d-cad\u003C\u002Fb>\u003C\u002Fa> · CAD\u003Cbr>\u003Csub>Mechanical parts from public CAD models.\u003C\u002Fsub>\u003C\u002Ftd>\n    \u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FSandflow\u002Fsand3d-articraft\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fdatasets\u002Fsand3d-articraft.jpg\" alt=\"sand3d-articraft\" width=\"240\">\u003C\u002Fa>\u003Cbr>\n      \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FSandflow\u002Fsand3d-articraft\">\u003Cb>sand3d-articraft\u003C\u002Fb>\u003C\u002Fa> · Articraft\u003Cbr>\u003Csub>Articulated objects from Articraft, their joints declared.\u003C\u002Fsub>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FSandflow\u002Fsand3d-simready\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fdatasets\u002Fsand3d-simready.jpg\" alt=\"sand3d-simready\" width=\"380\">\u003C\u002Fa>\u003Cbr>\n      \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FSandflow\u002Fsand3d-simready\">\u003Cb>sand3d-simready\u003C\u002Fb>\u003C\u002Fa> · SimReady\u003Cbr>\u003Csub>Simulation-ready assets from NVIDIA SimReady.\u003C\u002Fsub>\u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FSandflow\u002Fsand3d-automate\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSandflow-ai\u002Fsand3d\u002Fmain\u002Fdocs\u002Freadme\u002Fdatasets\u002Fsand3d-automate.jpg\" alt=\"sand3d-automate\" width=\"380\">\u003C\u002Fa>\u003Cbr>\n      \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FSandflow\u002Fsand3d-automate\">\u003Cb>sand3d-automate\u003C\u002Fb>\u003C\u002Fa> · AutoMate\u003Cbr>\u003Csub>Mechanical assemblies from AutoMate, each part a function of its program.\u003C\u002Fsub>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\nBrowse them in [the explorer](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002FSandflow\u002Fsand3d-explorer), or all five in [the collection](https:\u002F\u002Fhuggingface.co\u002Fcollections\u002FSandflow\u002Fsand3d-6aec268fbdcd3bc174236168).\n\n## Citation\n\nIf you use sand3d in your work, please cite it. `CITATION.cff` holds the same, and GitHub\nshows it as \"Cite this repository\".\n\n```bibtex\n@misc{sand3d2026,\n  author = {Neveu, Thibault and Loy, Andr{\\'e}a},\n  title  = {sand3d},\n  year   = {2026},\n  note   = {Version 1.6.3},\n  url    = {https:\u002F\u002Fgithub.com\u002FSandflow-ai\u002Fsand3d}\n}\n```\n\n## Contributing and license\n\nHow the library is built, tested and versioned: [CONTRIBUTING.md](https:\u002F\u002Fgithub.com\u002FSandflow-ai\u002Fsand3d\u002Fblob\u002Fmain\u002FCONTRIBUTING.md).\nApache License 2.0: see [LICENSE](https:\u002F\u002Fgithub.com\u002FSandflow-ai\u002Fsand3d\u002Fblob\u002Fmain\u002FLICENSE).\n","sand3d 是一个面向大语言模型（LLM）优化的 Python 3D 建模库，基于 Blender 的 bpy API 实现程序化建模。它支持以简洁、可读的代码方式定义几何轮廓、实体、编辑操作、坐标系、连接结构和装配体，将 3D 模型压缩为数百 token 的描述性程序。核心特点包括低 token 开销、语义清晰的领域特定语法、与 Blender 深度集成，以及对 USD 格式的原生支持。适用于 LLM 驱动的 3D 内容生成、AI 辅助 CAD 设计、可解释性建模任务及需要模型可编程性与版本可控性的工程场景。",2,"2026-11-24 04:35:03","CREATED_QUERY"]