NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LoopDraw: a Loop-Based Autoregressive Model for Shape Synthesis and Editing

Nam Anh Dinh, Haochen Wang, Greg Shakhnarovich, Rana HanockaarXiv 2022

Abstract

There is no settled universal 3D representation for geometry with many alternatives such as point clouds, meshes, implicit functions, and voxels to name a few. In this work, we present a new, compelling alternative for representing shapes using a sequence of cross-sectional closed loops. The loops across all planes form an organizational hierarchy which we leverage for autoregressive shape synthesis and editing. Loops are a non-local description of the underlying shape, as simple loop manipulations (such as shifts) result in significant structural changes to the geometry. This is in contrast to manipulating local primitives such as points in a point cloud or a triangle in a triangle mesh. We further demonstrate that loops are intuitive and natural primitive for analyzing and editing shapes, both computationally and for users.

LoopDraw represents 3D shapes as sequences of cross-sectional loops, enabling intuitive editing and synthesis.

Introduction

Choosing the "right" representation for 3D geometry is a long-standing challenge in computer vision and graphics. Common formats like voxels are computationally expensive at high resolutions, point clouds lack surface connectivity, and implicit functions (like NeRFs or SDFs) are notoriously difficult for humans to edit directly.

LoopDraw addresses this gap by proposing a representation that is both computationally efficient for deep learning and intuitively editable for users. The authors propose that "loops"—closed 2D contours representing cross-sections—strike the perfect balance. Unlike a single vertex in a mesh, a loop is a "non-local" primitive; moving one loop implies a significant structural change, making it a powerful handle for shape manipulation.

Methods

LoopDraw represents a 3D shape as an ordered sequence of 2D polylines.

Loop Representation

A 3D mesh is sliced along a primary axis into a set of planes. Each plane contains one or more closed loops. These loops are resampled to a fixed number of vertices (32 in this paper) and paired with a "level-up" binary flag that tells the model when to move to the next slice plane. This creates an organizational hierarchy that can be modeled as a sequence.

Architecture

The core is a Transformer-based Variational Autoencoder (VAE).

  • Encoder: Takes the full sequence of loops and compresses them into a latent vector $z$.
  • Decoder: An autoregressive Transformer. Given the latent code $z$ and the sequence of loops generated so far, it predicts the next loop in the sequence.
The model predicts a sequence of loops autoregressively, which are then reconstructed into a final 3D mesh.

Reconstruction

To turn the predicted loops back into a 3D mesh, the authors use Poisson Surface Reconstruction. They develop a specific heuristic to estimate surface normals from the loop data, ensuring the final mesh respects the intended topology, such as the hollow interior of a vase.

Key Insights and Ideas

The "Adaptive" Edit

The most striking feature of LoopDraw is how it handles user intervention. Because the decoder is autoregressive, a user can manually "inject" a modified loop mid-generation. The model then "explains" this anomaly by adapting all subsequent loops. For example, shifting a single loop on a handleless vase can force the model to generate a handle to connect that shifted loop back to the body.

Non-Local Primitives

Traditional editing (moving vertices) is local and tedious. LoopDraw treats the cross-section as the fundamental unit. This allows for "loop transplantation," where you can take the handle loops from one vase and insert them into the generation process of another. By flattening 3D structures into 1D sequences of loops, the authors leverage the progress made in Large Language Models (LLMs) and sequence transformers, applying "next-token prediction" logic to 3D synthesis.

Results and Evaluation

The model was trained on two primary categories: COSEG Vases (smooth curves, varied topologies) and ShapeNet Sofas (angular, man-made features).

  • Smooth Latent Space: Interpolating between two latent vectors produces smooth, semantically meaningful transitions.
  • Structural Modification: Qualitative results demonstrate that the model can successfully "repair" or "complete" shapes after drastic manual edits.
  • Fidelity: Despite the sparse representation (32-40 planes), the reconstructed meshes accurately capture sharp corners and high-frequency features.

Limitations and Future Work

Currently, the model requires slicing along a single, pre-defined axis, which struggles with complex, multi-directional geometry like tangled knots. The input data must also be manifold meshes. Future directions include exploring "multi-axis" slicing or treating loops as unordered sets to remove scan direction dependency. There is also potential for this representation in medical imaging (CT/MRI scans), which are natively cross-sectional.

Summary updated

BibTeX
@misc{dinh2022loopdraw,
  author = {Nam Anh Dinh and Haochen Wang and Greg Shakhnarovich and Rana Hanocka},
  title = {{LoopDraw: a Loop-Based Autoregressive Model for Shape Synthesis and Editing}},
  year = {2022},
  eprint = {2212.04981},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.04981},
}
Figure