BSP-Net: Generating Compact Meshes via Binary Space Partitioning

Zhiqin Chen, Andrea Tagliasacchi, Hao Zhang

Abstract: Polygonal meshes are ubiquitous in the digital 3D domain, yet they have only played a minor role in the deep learning revolution. Leading methods for learning generative models of shapes rely on implicit functions, and generate meshes only after expensive iso-surfacing routines. To overcome these challenges, we are inspired by a classical spatial data structure from computer graphics, Binary Space Partitioning (BSP), to facilitate 3D learning. The core ingredient of BSP is an operation for recursive subdivision of space to obtain convex sets. By exploiting this property, we devise BSP-Net, a network that learns to represent a 3D shape via convex decomposition. Importantly, BSP-Net is unsupervised since no convex shape decompositions are needed for training. The network is trained to reconstruct a shape using a set of convexes obtained from a BSP-tree built on a set of planes. The convexes inferred by BSP-Net can be easily extracted to form a polygon mesh, without any need for iso-surfacing. The generated meshes are compact (i.e., low-poly) and well suited to represent sharp geometry; they are guaranteed to be watertight and can be easily parameterized. We also show that the reconstruction quality by BSP-Net is competitive with state-of-the-art methods while using much fewer primitives. Code is available at https://github.com/czq142857/BSP-NET-original.

Introduction

In the world of 3D deep learning, representing shapes is surprisingly difficult. Most state-of-the-art models rely on voxels, point clouds, or implicit functions. While implicit functions are popular, they have a major drawback: to obtain a usable 3D mesh for a game engine or CAD tool, one must run expensive algorithms like "Marching Cubes." This process often results in "over-tessellated" meshes—thousands of tiny triangles that only approximate sharp edges with rounded corners.

BSP-Net addresses this by generating meshes natively and compactly. By predicting a set of planes that carve out space, it outputs structured, watertight meshes that preserve sharp geometric features while using a fraction of the triangles required by traditional implicit models.

Methods

BSP-Net takes inspiration from Binary Space Partitioning (BSP), a classic computer graphics data structure. The core idea is to represent a 3D shape as a composition of convex parts, where each part is defined by the intersection of several half-spaces (planes).

The BSP-Net architecture consists of three stages: hyperplane extraction, hyperplane grouping into convexes, and final shape assembly.

As shown in the architecture diagram above, the network operates in three main stages:

  1. Hyperplane Extraction: An MLP predicts the parameters for a set of $p$ planes based on a shape feature code.
  2. Hyperplane Grouping: The network learns a binary matrix $T$ that groups these planes into $c$ convex primitives, effectively deciding which planes "carve" specific parts of the object.
  3. Shape Assembly: These convex parts are merged via a union operation to create the final 3D shape.

To overcome the challenge of training with discrete binary logic, the authors employ a two-stage training scheme. Stage 1 (Continuous) uses a relaxed version of the mathematics to allow gradients to flow through standard backpropagation. Stage 2 (Discrete) then quantizes the weights to force sharp intersections, resulting in clean, "low-poly" outputs.

Key Insights and Results

One of the most significant features of BSP-Net is its ability to perform unsupervised decomposition. The network learns to decompose shapes into semantic parts without any ground-truth labels, discovering the most efficient way to build a complex object out of convex primitives. This leads to a natural correspondence where specific network "slots" consistently represent the same semantic parts (e.g., chair legs) across different objects.

Comparison of BSP-Net and IM-NET. BSP-Net produces a compact, sharp mesh (600 triangles) compared to the over-tessellated, "blobby" output of IM-NET (183,096 triangles).

In terms of performance, BSP-Net is remarkably efficient. It produces meshes with an average of 650 polygons, whereas competing methods like AtlasNet or OccNet require thousands. Furthermore, BSP-Net excels at capturing sharp boundaries. On the Edge Chamfer Distance (ECD) metric, BSP-Net significantly outperformed competitors (0.743 vs. 2.069 for AtlasNet), proving its superiority in representing geometric corners and edges.

Limitations and Future Work

While BSP-Net is highly effective for many shapes, representing complex concave structures (like thin handles or rings) can be inefficient, requiring many small convexes. The authors suggest that incorporating a "subtraction" operation, similar to Constructive Solid Geometry (CSG), could address this in the future. Additionally, the model currently uses a fixed number of primitives; an adaptive approach that adjusts the primitive count based on shape complexity remains an area for further research.

Summary updated

BibTeX
@inproceedings{chen2020bsp,
  author = {Zhiqin Chen and Andrea Tagliasacchi and Hao Zhang},
  title = {{BSP-Net: Generating Compact Meshes via Binary Space Partitioning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=8TmoDYXOYc},
}
Figure