BrepGPT: Autoregressive B-rep Generation with Voronoi Half-Patch
Pu Li, Wenhao Zhang, Weize Quan, Biao Zhang, Peter Wonka, Dong-Ming Yan
TL;DR
BrepGPT introduces a decoder-only autoregressive model for full B-rep CAD generation by unifying geometry and topology through the Voronoi Half-Patch representation. It leverages dual VQ-VAEs to produce compact vertex-based tokens and trains a GPT-style Transformer to sequentially generate B-rep information, followed by detokenization into complete models. The approach achieves state-of-the-art performance in unconditional B-rep generation and demonstrates strong capabilities in conditional generation (class, point cloud, image, text), autocompletion, and interpolation. This framework offers a scalable, single-stage alternative to hierarchical and diffusion-based CAD generation methods, with potential to improve geometric fidelity and topological coherence in industrial design workflows.
Abstract
Boundary representation (B-rep) is the de facto standard for CAD model representation in modern industrial design. The intricate coupling between geometric and topological elements in B-rep structures has forced existing generative methods to rely on cascaded multi-stage networks, resulting in error accumulation and computational inefficiency. We present BrepGPT, a single-stage autoregressive framework for B-rep generation. Our key innovation lies in the Voronoi Half-Patch (VHP) representation, which decomposes B-reps into unified local units by assigning geometry to nearest half-edges and sampling their next pointers. Unlike hierarchical representations that require multiple distinct encodings for different structural levels, our VHP representation facilitates unifying geometric attributes and topological relations in a single, coherent format. We further leverage dual VQ-VAEs to encode both vertex topology and Voronoi Half-Patches into vertex-based tokens, achieving a more compact sequential encoding. A decoder-only Transformer is then trained to autoregressively predict these tokens, which are subsequently mapped to vertex-based features and decoded into complete B-rep models. Experiments demonstrate that BrepGPT achieves state-of-the-art performance in unconditional B-rep generation. The framework also exhibits versatility in various applications, including conditional generation from category labels, point clouds, text descriptions, and images, as well as B-rep autocompletion and interpolation.
