ExtrudeNet: Unsupervised Inverse Sketch-and-Extrude for Shape Parsing

Daxuan Ren, Jianmin Zheng, Jianfei Cai, Jiatong Li, Junzhe Zhang · DOI

Introduction

In Computer-Aided Design (CAD), the "sketch-and-extrude" workflow is the industry standard. Designers create 2D profiles—sketches—and project them into 3D space to form volumes. However, real-world 3D data is typically captured as unstructured point clouds. Bridging the gap between these raw coordinates and editable CAD models remains a significant challenge in computer vision. While existing shape parsing methods often rely on rigid primitives like boxes or require massive labeled datasets, ExtrudeNet introduces an unsupervised approach to reverse-engineer the sketch-and-extrude process directly from point clouds.

Methodology

ExtrudeNet utilizes an end-to-end differentiable pipeline to decompose 3D shapes into a collection of editable 2D sketches and their corresponding 3D extrusions. The architecture consists of three primary modules:

1. rBézierSketch

The core of the sketching process is the rBézierSketch module, which represents 2D profiles using rational cubic Bézier curves. Unlike standard Bézier curves, rational curves incorporate weights that allow the network to represent a wider variety of geometries, including perfect circles and complex freeform shapes, within a unified framework. To ensure the generated sketches are topologically sound, the network constrains control points to a radial setup, producing closed, "star-shaped" loops that avoid self-intersection.

2. Sketch2SDF

To facilitate gradient-based learning, the system must determine the distance between points and the parametric curves. Since parametric curves lack a simple analytical formula for distance, the authors developed Sketch2SDF, a differentiable numerical method to compute a Signed Distance Field (SDF). This allows the network to "feel" the geometric error and iteratively refine the sketch to match the target point cloud.

3. DiffExtruder and Assembly

The DiffExtruder module takes the 2D SDF and projects it into 3D based on predicted height and orientation parameters. These individual extruded volumes are then combined using CSG-Stump, a framework for Constructive Solid Geometry. This allows the model to perform Boolean operations—such as addition and subtraction—to assemble multiple simple extrusions into complex, multi-part objects.

Experimental Evaluation

The researchers evaluated ExtrudeNet on the ShapeNet dataset, focusing on 13 diverse categories including airplanes, cars, and furniture. The model was trained in a purely unsupervised manner, using reconstruction loss to compare predicted occupancy against ground truth meshes.

Quantitative and Qualitative Performance

ExtrudeNet demonstrated superior performance compared to existing unsupervised baselines such as Volumetric Primitives, Superquadrics, and UCSG-Net.

  • Accuracy: The model achieved a mean Chamfer Distance (CD) of 1.15, significantly lower than the 1.32 achieved by the next best method.
  • Geometric Fidelity: Qualitatively, ExtrudeNet excels at capturing curved surfaces. While primitive-based methods often approximate airplane wings or rounded furniture with blocky shapes, ExtrudeNet’s rational Bézier curves provide smooth, accurate reconstructions.
  • Downstream Editability: A key advantage of this approach is its compatibility with professional CAD tools. Because the output consists of Bézier control points and extrusion parameters, the models can be imported directly into software like Fusion 360 or OpenSCAD. This enables "secondary development," where a user can modify a generated shape by simply adjusting a few control points.

Limitations and Future Directions

Despite its success, ExtrudeNet faces certain challenges. The high degree of freedom provided by rational Bézier curves results in longer training times—approximately five days on an NVIDIA V100. Additionally, the model's flexibility can occasionally lead to geometric artifacts if it overfits to noise in the input data.

Currently, the system is limited to linear extrusions. Future research could expand the framework to include sweeping (extruding along a path) and lofting (transitioning between different sketches), which would enable the reconstruction of even more sophisticated industrial components.

Conclusion

ExtrudeNet represents a significant step forward in unsupervised shape parsing. By mimicking the human design process through a differentiable sketch-and-extrude pipeline, it provides a bridge between raw 3D sensor data and the structured, editable formats required by modern engineering workflows.

Summary updated

BibTeX
@inproceedings{ren2022extrudenet,
  author = {Daxuan Ren and Jianmin Zheng and Jianfei Cai and Jiatong Li and Junzhe Zhang},
  title = {{ExtrudeNet: Unsupervised Inverse Sketch-and-Extrude for Shape Parsing}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20086-1\_28},
}
Figure