---
id: "polygen"
title: "PolyGen autoregressive mesh generation"
aliases: [PolyGen]
domain: "genai"
stage: "generation"
realtime: "interactive"
platforms: [python, cuda]
year_introduced: 2020
inputs: [voxels, photos]
outputs: [mesh]
style: "both"
dynamic: "static"
cost: "heavy"
authority: "Nash et al., 2020"
url: "https://texelatlas.vercel.app/t/polygen/"
sources_verified_at: "2026-11-29"
---
# PolyGen autoregressive mesh generation (Nash et al., 2020)

> A transformer model that writes a polygon mesh directly: first the vertex coordinates, then the faces as index sequences, so output is native low-poly geometry rather than an iso-surface.

## Reach for it when

- want a generative model that outputs real polygon meshes
- ai generated meshes are dense and not artist style
- need low poly mesh generation conditioned on a voxel or image
- generate vertices and faces as a sequence of tokens
- iso surface extraction gives messy triangles from generated models

## How it works

Meshes are treated as two token sequences. A vertex model predicts quantised x, y, z coordinates one value at a time (vertices sorted by height z, then y, then x) with a Transformer decoder, and each new coordinate is conditioned on all previous ones. A face model then takes the generated vertices and produces faces by emitting vertex indices through a pointer-network-style head: attention over the encoded vertex list selects which vertex comes next, with a stop token to end each face. Both stages can be conditioned on class labels, an image or a voxel grid through cross-attention. Sampling uses nucleus (top-p) sampling for diversity. Because the result is an explicit n-gon mesh with shared vertices, it needs no remeshing, and triangles can be edge-length-limited by the learned distribution.

## When to use it

Choose it as the reference for mesh-as-sequence generation and for understanding later artist-style mesh models. Prefer [MeshGPT](https://texelatlas.vercel.app/t/meshgpt.md) or [MeshAnything](https://texelatlas.vercel.app/t/meshanything.md) for stronger, scalable successors with learned tokenisers, [TripoSR](https://texelatlas.vercel.app/t/triposr.md) or [TRELLIS (Structured 3D Latents)](https://texelatlas.vercel.app/t/trellis.md) when a dense implicit surface is acceptable, and procedural [Procedural Kit Modeling with Verification (procgen-kit)](https://texelatlas.vercel.app/t/procedural-kit-modeling.md) when you need controllable game-ready layouts.

## Cost

heavy — Autoregressive decoding is sequential and long; thousands of tokens per mesh make it seconds to minutes per sample in the original setup.

## Failure modes

- Limited to small meshes (hundreds of faces) because of sequence length growth
- Occasional non-manifold, flipped or intersecting faces, since validity is not enforced
- Quantisation to a coarse coordinate grid limits fine detail
- Quality tied to the training set (ShapeNet-class furniture), with weak generalisation to new categories
- No textures or UVs are produced

## Dataflow

- Inputs: voxels, photos
- Outputs: mesh
- Platforms: python, cuda

## Combines with

- [MeshGPT](https://texelatlas.vercel.app/t/meshgpt.md): PolyGen's vertex-then-face sequences motivate the learned geometry tokens that MeshGPT decodes.

## Sources

1. [primary] Charlie Nash, Yaroslav Ganin, S. M. Ali Eslami, Peter W. Battaglia (2020) PolyGen: An Autoregressive Generative Model of 3D Meshes. arXiv preprint (cs.GR). https://arxiv.org/abs/2002.10880 (verified via arxiv on 2026-11-29)
2. [implementation] google-deepmind (2019) google-deepmind/deepmind-research. https://github.com/google-deepmind/deepmind-research License: Apache-2.0. (verified via github on 2026-11-29)

## Cite this entry

Texel. "PolyGen autoregressive mesh generation." https://texelatlas.vercel.app/t/polygen/ (accessed 2026-12-01).
