---
id: "shapelib"
title: "ShapeLib"
domain: "genai"
stage: "generation"
realtime: "offline"
platforms: [python]
year_introduced: 2025
inputs: [text-prompt, mesh, point-cloud, voxels]
outputs: [graph, mesh]
style: "both"
dynamic: "static"
cost: "offline"
authority: "Jones et al., 2025"
url: "https://texelatlas.vercel.app/t/shapelib/"
sources_verified_at: "2026-11-29"
---
# ShapeLib (Jones et al., 2025)

> Uses an LLM to design a library of reusable programmatic shape functions from text descriptions and a few exemplars, then trains recognisers to map shapes into programs built from that library.

## Reach for it when

- need a reusable library of shape-building functions from a text description
- want editable programs instead of raw meshes for a category
- llm should invent helper functions for a family of shapes
- recognise shapes and turn them into code
- compact programmatic shape representation from few examples

## How it works

The user supplies text describing desired functions and a small seed set of example shapes. An LLM workflow proposes functions and implementations, then validates that each function actually helps to express the seed shapes, keeping those that make programs shorter or more faithful (an abstraction-discovery step in the style of library learning). To handle shapes beyond the seed set, recognition networks are trained to map primitives, voxels or point clouds to programs that call the discovered functions. The end result is a domain-specific language with LLM-written but verified functions, plus an inference path from raw shapes to short programs.

## When to use it

Choose it when you need a compact, editable program representation for a shape category and can supply a handful of exemplars. Prefer [LLM-written procedural kits with verification gates](https://texelatlas.vercel.app/t/procgen-kit-llm-harness.md) when the output is a parametric kit with strict manifold and collision checks, [LL3M (Large Language 3D Modelers)](https://texelatlas.vercel.app/t/ll3m.md) for one-off Blender asset authoring, and learned latent generators like [TRELLIS (Structured 3D Latents)](https://texelatlas.vercel.app/t/trellis.md) when program structure is not needed.

## Cost

offline — LLM library design plus recogniser training; research workflow, not an interactive tool.

## Failure modes

- Library quality depends on the seed exemplars and prompt; poor seeds yield narrow functions
- Recognition networks fail on shapes outside the learned domain
- Program edits may break geometry validity without a separate checker
- No public repository found for it

## Dataflow

- Inputs: text-prompt, mesh, point-cloud, voxels
- Outputs: graph, mesh
- Platforms: python

## Sources

1. [primary] R. Kenny Jones, Paul Guerrero, Niloy J. Mitra, Daniel Ritchie (2025) ShapeLib: Designing a library of programmatic 3D shape abstractions with Large Language Models. arXiv preprint (cs.CV). https://arxiv.org/abs/2502.08884 (verified via arxiv on 2026-11-29)

## Cite this entry

Texel. "ShapeLib." https://texelatlas.vercel.app/t/shapelib/ (accessed 2026-12-01).
