Procedura: Agentic 3D Modeling with Procedural Control

Youtian Lin, Yikang Yang, Zhanpeng Hu, Mengqi Zhou, Feihu Zhang, Xun Cao, Jiaheng Liu, Yao YaoarXiv 2026

TL;DR

Procedura is an agentic framework that enables Large Language Models (LLMs) to generate complex 3D models as editable, part-structured programs rather than static, "soft" meshes. By treating 3D modeling as a procedural assembly task governed by mechanical "mates," it produces high-precision, articulated assets that outperform state-of-the-art native generators in both geometric sharpness and functional utility.

What Problem Does This Paper Address?

Current "native" 3D generators (like those based on diffusion or autoregressive mesh generation) have become remarkably good at capturing the general silhouette of an object from a single image or prompt. However, they suffer from three major drawbacks for engineering and production use:

  1. Lack of Precision: They produce "soft" meshes where edges should be sharp, making them unsuitable for machined or mechanical parts.
  2. No Structure: They output a single "blob" of triangles with no concept of individual parts (e.g., a wheel vs. a chassis).
  3. Zero Editability: You cannot easily change the diameter of a bolt or the length of a robotic arm; you have to sculpt the raw mesh.

While LLMs can write code (like OpenSCAD) to define 3D shapes, they often struggle with complex assemblies, producing "toy-like" models with floating parts or incorrect placements because they try to generate the entire script in a single, blind pass.

Methods

Procedura introduces an agentic workflow that mimics how a human engineer might work in CAD software. The process is broken down into three main stages:

  1. Assembly-Graph Planning: Instead of writing code immediately, the agent first plans the object as a graph of named parts and typed mates. Mates are mechanical constraints—like a "peg-in-socket" or a "bolt pattern"—that define exactly how two parts should connect.
  2. Mate-Driven Building: The agent builds the program part-by-part. Crucially, it doesn't "guess" the coordinates for placement. Instead, it defines the geometry and the mate frames, and the system mathematically solves for the rigid transform that aligns them. Each step is guarded by a verification stack:
  3. Compile Check: Does the code actually run?
  4. Mate Check: Do the parts actually touch where they should without overlapping?
  5. Connectivity Check: Is the part physically attached to the rest of the model?
  6. Decoupled-Critic Refinement: Once a draft is finished, a separate "vision critic" (a different LLM instance) reviews renders of the model against the original reference and suggests specific fixes (e.g., "the winch is too small").
Figure 2. A shape written as code is natively part-structured. Procedura builds each object as a parametric program with one named module per physical part, so the model decomposes into meaningful, editable segments at no extra cost, since there is no post-hoc segmentation step. The assault buggy (left) is shown with per-part colours and fanned out into its named parts (roll cage, turret, seats, wheels, drivetrain, panels), alongside other objects and a library of individual parts. A generated mesh is a single opaque surface. In contrast, every part here is individually addressable and re-parameterizable, and the same decomposition drives the per-part materials (Sec. 3.5) and articulation (Sec. 3.6).

The framework uses Constructive Solid Geometry (CSG), where shapes are built from mathematical primitives like cylinders and cubes. This ensures that edges remain perfectly sharp at any resolution.

Datasets

The authors evaluated Procedura on two main benchmarks:

  • P3D-Bench: An existing benchmark for parametric 3D generation containing 203 cases.
  • MechBench-36: A new, more rigorous benchmark introduced in this paper. It consists of 36 complex, many-part mechanical objects (rovers, excavators, engines) designed to stress-test an agent's ability to handle part counts, placement, and connectivity.

Key Insights and Ideas

  • Mates > Coordinates: The "aha moment" is that LLMs are bad at spatial coordinate estimation but excellent at logical relationships. By using typed mates (see Figure 4), the system offloads the difficult math of placement to a deterministic solver, preventing the "drift" that usually ruins long-form 3D code generation.
  • Decoupling the Critic: The authors found that a model that critiques its own work often fails to see its own errors. Using a separate, single-turn vision call for the critic significantly improved the quality of refinements.
  • Span-Based Connectivity: Traditional volume-based checks often miss thin, detached panels. Procedura uses a "span-based" gate that measures the bounding box of disconnected components to ensure the model is printable and physically sound.
Figure 4. The mate library. The nine static mating features a part may declare, each rendered from the compiler macros the build emits. Teal is the male half added to the new part and grey the female half cut from its partner; both derive from one shared nominal dimension and a signed fit offset.

Key Results

Procedura sets a new state-of-the-art for agentic 3D modeling:

  • Superior Quality: On MechBench-36, it achieved a judge score of 0.828, outperforming top native generators like TRELLIS.2 (0.810) and prior code agents like Adam CAD (0.799).
  • Extreme Sharpness: It produced 3x more sharp-edge length than any other code-emitting method.
  • Functional Assets: Unlike static meshes, Procedura's outputs are "sim-ready." 14 out of 18 tested objects cleared a battery of physics tests in Isaac Sim, including joint actuation and mobility tests.
  • Native Decomposition: Because the model is built part-by-part, it comes with a perfect semantic breakdown for free. You can click on a "wheel" or "turret" and edit it individually.
Figure 5. Mate-driven building. Top: for each planned part, the dynamic context packs three grounded sources into one generation message: (a) the assembly reference, namely the reference image, the prompt, and the part’s mate, shown here beside the verdict its mesh check returned; (b) the built history, the full and already-compiling program; and (c) 3D feedback, parts-colour renders of the build so far. Bottom: the program grows one part per mate, shown as five snapshots of the assault buggy at 2, 10, 18, 24, and 28 parts. Each part is generated in one LLM call and parsed into five blocks. The splice is deterministic and the placement is solved from the mated frames, and the compile, mate, and span gates must all pass before the part is committed. Every commit re-renders the 3D feedback for the next part.

Limitations and Future Work

Despite its success, the authors note several areas for improvement:

  • Vision Occlusion: The agent only "sees" through renders. If a part is hidden inside a chassis, the agent can't verify its placement. Future versions might use depth maps or direct mesh queries.
  • Organic Shapes: CSG is perfect for machines but struggles with organic, freeform surfaces (like animals or plants), which are better handled by neural fields.
  • Mate Vocabulary: The current system is limited to rigid and basic kinematic joints. Expanding this to flexible parts or more complex mechanical linkages is a clear next step.

Summary updated

BibTeX
@misc{lin2026procedura,
  author = {Youtian Lin and Yikang Yang and Zhanpeng Hu and Mengqi Zhou and Feihu Zhang and Xun Cao and Jiaheng Liu and Yao Yao},
  title = {{Procedura: Agentic 3D Modeling with Procedural Control}},
  year = {2026},
  eprint = {2608.26238},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.26238},
}
Figure