CADCL: Reconstruct parametric CAD models from B-rep via contrastive learning
Abstract Reconstructing computer-aided design (CAD) models from geometric models has long been a fundamental yet challenging research problem. In this work, we propose a novel contrastive learning framework, CADCL, which reconstructs parametric CAD sequences from B-rep models. The framework consists of two stages. In the first stage, a transformer-based module is trained to encode CAD sequences into latent embeddings. In the second stage, the input B-rep is represented as a graph and jointly process with the CAD sequence embeddings obtained from the first stage. The final output is a parametric CAD sequence. Different from existing approaches, this paper innovatively incubates a contrastive learning approach for B-rep embeddings and CAD sequence embeddings, which enables the B-rep embeddings to effectively capture information align with the parametric CAD structure. In this way, the B-rep features can be more accurately decoded into CAD sequences. Extensive experimental results on both the simple DeepCAD dataset and advanced WHUCAD dataset demonstrate that our method outperforms existing approaches, and the generated CAD sequences can be successfully imported and edited in standard CAD modeling software.
Authors
- Xiaohu Yan (ORCID: https://orcid.org/0000-0002-5657-5271)
- Y.X. Chu (ORCID: https://orcid.org/0000-0002-5755-9097)
- Rubin Fan
- Jing Liang (ORCID: https://orcid.org/0000-0002-2761-4657)
- Fazhi He
Institutions
- Shenzhen Polytechnic University (CN)
- Wuhan University (CN)
Publication Details
- Journal
- Journal of Computational Design and Engineering
- Published
- 2025-10-01
- DOI
- https://doi.org/10.1093/jcde/qwaf102
- Citations
- 1
- Primary Topic
- Manufacturing Process and Optimization
- Type
- article
- Field-Weighted Citation Impact
- 1.24
Funders
- National Natural Science Foundation of China
- Department of Education of Guangdong Province