Skip to main content
QUICK REVIEW

[Paper Review] D$^2$CSG: Unsupervised Learning of Compact CSG Trees with Dual Complements and Dropouts

Fenggen Yu, Qimin Chen|arXiv (Cornell University)|Jan 27, 2023
3D Shape Modeling and AnalysisEngineering4 citations
TL;DR

D$^2$CSG proposes a dual-branch neural network for unsupervised learning of compact, general, and high-quality CSG tree representations of 3D CAD shapes. By separating the shape into a cover and residual component via two complementary branches and applying weight dropout to remove redundant primitives, it achieves superior reconstruction quality and compactness—especially on complex, high-genus shapes—outperforming state-of-the-art methods like CAPRI-Net.

ABSTRACT

We present D$^2$CSG, a neural model composed of two dual and complementary network branches, with dropouts, for unsupervised learning of compact constructive solid geometry (CSG) representations of 3D CAD shapes. Our network is trained to reconstruct a 3D shape by a fixed-order assembly of quadric primitives, with both branches producing a union of primitive intersections or inverses. A key difference between D$^2$CSG and all prior neural CSG models is its dedicated residual branch to assemble the potentially complex shape complement, which is subtracted from an overall shape modeled by the cover branch. With the shape complements, our network is provably general, while the weight dropout further improves compactness of the CSG tree by removing redundant primitives. We demonstrate both quantitatively and qualitatively that D$^2$CSG produces compact CSG reconstructions with superior quality and more natural primitives than all existing alternatives, especially over complex and high-genus CAD shapes.

Motivation & Objective

  • To address the lack of general, compact, and high-quality CSG representations for complex 3D CAD shapes in unsupervised learning.
  • To overcome the limitations of prior neural CSG models that cannot handle nested difference operations or produce natural, compact trees.
  • To improve compactness and reconstruction quality by introducing a dedicated residual branch for complex shape complements.
  • To enable end-to-end differentiable training using only occupancy loss, without class priors or supervision.
  • To support practical applications such as shape editing via OpenSCAD script generation.

Proposed method

  • The model uses two identical, independent neural branches: a cover branch to model the main shape and a residual branch to model the shape complement for subtraction.
  • Both branches construct unions of intersections of quadric primitives and their inverses, enabling flexible and general shape modeling.
  • The final reconstructed shape is obtained via a difference operation: S = S_cover \setminus S_residual, allowing natural representation of holes and high-genus shapes.
  • A weight dropout strategy is applied to the intersection and union layers to remove redundant primitives and intermediate shapes, improving compactness.
  • The network is trained end-to-end using only occupancy loss, with no class labels or supervision, enabling unsupervised learning on CAD parts.
  • The method supports shape editing by exporting learned primitives and CSG operations into OpenSCAD scripts for interactive modification.

Experimental results

Research questions

  • RQ1Can a dual-branch neural architecture improve the compactness and reconstruction quality of CSG trees for complex 3D CAD shapes?
  • RQ2Does separating the shape into a cover and residual component enable better modeling of complex topologies, such as high-genus shapes and nested holes?
  • RQ3Can weight dropout effectively reduce redundant primitives in CSG trees without sacrificing reconstruction accuracy?
  • RQ4Is the proposed method provably general, capable of representing any CSG tree through equivalent D$^2$CSG structure?
  • RQ5Can the learned CSG representations be used for practical shape editing and interoperability with CAD tools like OpenSCAD?

Key findings

  • On the ABC dataset, D$^2$CSG achieves a Chamfer Distance (CD) of 0.085, significantly lower than CAPRI-Net’s 0.225, indicating superior reconstruction quality.
  • On ShapeNet, D$^2$CSG achieves a CD of 0.224, outperforming the next best method (CAPRI-Net at 0.242) in reconstruction accuracy.
  • D$^2$CSG reduces the number of primitives (#P) to 35.28 on ABC and 51.26 on ShapeNet, representing a 50% reduction compared to the dual-branch-only variant.
  • The method achieves a 92.4% F-Score (NC) on ABC and 88.6% on ShapeNet, outperforming all baselines in shape similarity metrics.
  • The model produces more natural CSG trees with fewer intermediate shapes and surface segments, indicating better structural compactness and interpretability.
  • The OpenSCAD script generation capability enables interactive shape editing, demonstrating practical usability and interoperability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.