Journal of University of Chinese Academy of Sciences ›› 2026, Vol. 43 ›› Issue (5): 603-613.DOI: 10.7523/j.ucas.2025.006
• Mathematics & Physics • Previous Articles Next Articles
Received:2024-12-09
Revised:2025-03-03
Online:2026-09-15
Contact:
Liyong SHEN
CLC Number:
Zhuohang FENG, Liyong SHEN. An intelligent analysis method for 2D CAD shapes based on CSG[J]. Journal of University of Chinese Academy of Sciences, 2026, 43(5): 603-613.
Add to citation manager EndNote|Ris|BibTeX
| 类别 | 符号表示及说明 |
|---|---|
| 形状(S) | 圆形(c)、三角形(t, T)、正方形(s)、椭圆形(e, E) |
| 操作(O) | 并集(+)、交集(*)、差集(-)、终止($) |
| 基元(P) | S(X, Y, R),由形状、坐标和半径组合表示 |
| 语法规则 | 任意步需满足:Max_len // 2 + 1 >= num(P) > num(O) 序列结束时需满足:num(P) = num(O) + 1 |
| 生成 | 开始→ P → P → P || O → ··· |
示例 ( | 构造序列1 (左): c(32,32,24)s(32,32,8)-c(32,16,2)-c(32,48,2)-c(16,32,2)-c(48,32,2)-$ 构造序列2 (右): c(32,32,24)c(32,16,2)c(32,48,2)c(16,32,2)c(48,32,2)+++-s(32,32,8)-$ |
Table 1 Data generation rules
| 类别 | 符号表示及说明 |
|---|---|
| 形状(S) | 圆形(c)、三角形(t, T)、正方形(s)、椭圆形(e, E) |
| 操作(O) | 并集(+)、交集(*)、差集(-)、终止($) |
| 基元(P) | S(X, Y, R),由形状、坐标和半径组合表示 |
| 语法规则 | 任意步需满足:Max_len // 2 + 1 >= num(P) > num(O) 序列结束时需满足:num(P) = num(O) + 1 |
| 生成 | 开始→ P → P → P || O → ··· |
示例 ( | 构造序列1 (左): c(32,32,24)s(32,32,8)-c(32,16,2)-c(32,48,2)-c(16,32,2)-c(48,32,2)-$ 构造序列2 (右): c(32,32,24)c(32,16,2)c(32,48,2)c(16,32,2)c(48,32,2)+++-s(32,32,8)-$ |
| CSGNet | 22.865 | 0.289 | 7.385 | 33.082 | 0.266 | 7.238 | 45.356 | 0.308 | 5.320 |
| 本文方法 | 2.706 | 0.631 | 1.967 | 3.152 | 0.603 | 2.103 | 3.270 | 0.580 | 2.218 |
Table 2 Comparison of test results on synthetic data with different sequence lengths
| CSGNet | 22.865 | 0.289 | 7.385 | 33.082 | 0.266 | 7.238 | 45.356 | 0.308 | 5.320 |
| 本文方法 | 2.706 | 0.631 | 1.967 | 3.152 | 0.603 | 2.103 | 3.270 | 0.580 | 2.218 |
| CSGNet | 0.447 | 2.304 | 0.614 |
| CSGNet-RL | 0.626 | 1.120 | 0.768 |
| SWRNet | 0.551 | 1.402 | 0.748 |
| PLAD | 0.699 | 0.903 | 0.821 |
| 本文方法 | 0.733 | 0.765 | 0.846 |
Table 3 Comparison of numerical results for different metrics on CAD dataset
| CSGNet | 0.447 | 2.304 | 0.614 |
| CSGNet-RL | 0.626 | 1.120 | 0.768 |
| SWRNet | 0.551 | 1.402 | 0.748 |
| PLAD | 0.699 | 0.903 | 0.821 |
| 本文方法 | 0.733 | 0.765 | 0.846 |
数据 扩充 | VGG-Transformer结构 | 预测矫正模块 | |||
|---|---|---|---|---|---|
| × | × | × | 0.699 | 0.903 | 0.821 |
| √ | × | × | 0.721 | 0.796 | 0.840 |
| × | √ | × | 0.712 | 0.850 | 0.830 |
| √ | √ | × | 0.732 | 0.770 | 0.845 |
| √ | √ | √ | 0.733 | 0.765 | 0.846 |
Table 4 Ablation experiment results
数据 扩充 | VGG-Transformer结构 | 预测矫正模块 | |||
|---|---|---|---|---|---|
| × | × | × | 0.699 | 0.903 | 0.821 |
| √ | × | × | 0.721 | 0.796 | 0.840 |
| × | √ | × | 0.712 | 0.850 | 0.830 |
| √ | √ | × | 0.732 | 0.770 | 0.845 |
| √ | √ | √ | 0.733 | 0.765 | 0.846 |
| [1] | Vaswani A, Shazeer N, Parmar N, et al. Attention is all you need[C]//Proceedings of the 31st International Conference on Neural Information Processing Systems. December 4 - 9, 2017, Long Beach, California, USA. New York: ACM, 2017: 6000-6010. DOI: 10.5555 /3295222.3295349 . |
| [2] | Sharma G, Goyal R, Liu D F, et al. CSGNet: neural shape parser for constructive solid geometry[C]//2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition. June 18-23, 2018, Salt Lake City, UT, USA. IEEE, 2018: 5515-5523. DOI:10.1109/CVPR.2018.00578 . |
| [3] | Simonyan K, Zisserman A. Very deep convolutional networks for large-scale image recognition[EB/OL]. arXiv 2014: 1409.1556. (2014-09-04)[2024-12-06]. . |
| [4] | Fischler M A, Elschlager R A. The representation and matching of pictorial structures[J]. IEEE Transactions on Computers, 1973, C-22(1): 67-92. DOI:10.1109/T-C.1973.223602 . |
| [5] | Felzenszwalb P F, Huttenlocher D P. Pictorial structures for object recognition[J]. International Journal of Computer Vision, 2005, 61(1): 55-79. DOI:10.1023/B:VISI.0000042934.15159.49 . |
| [6] | Yang Y, Ramanan D. Articulated pose estimation with flexible mixtures-of-parts[C]//CVPR 2011. June 20-25, 2011, Colorado Springs, CO, USA. IEEE, 2011: 1385-1392. DOI:10.1109/CVPR.2011.5995741 . |
| [7] | Weiss D. Geometry-based structural optimization on CAD specification trees[D/OL]. Zurich: ETH Zurich, 2009[2024-12-06]. . |
| [8] | Foley J, Shapiro V, Vossler D L. Separation for boundary to CSG conversion[J]. ACM Transactions on Graphics, 1993, 12(1): 35-55. DOI: 10.1145/169728.169723 . |
| [9] | Buchele S F, Crawford R H. Three-dimensional halfspace constructive solid geometry tree construction from implicit boundary representations[C]//Proceedings of the Eighth ACM Symposium on Solid Modeling and Applications. June 16 - 20, 2003, Seattle, Washington, USA. ACM, 2003: 135-144. DOI:10.1145/781606.781629 . |
| [10] | Balog M, Gaunt A, Brockschmidt M, et al. DeepCoder: learning to write programs[EB/OL]. arXiv 2016: 1611.01989. (2016-11-07)[2024-12-06]. . |
| [11] | Johnson J, Hariharan B, Van Der Maaten L, et al. Inferring and executing programs for visual reasoning[C]//2017 IEEE International Conference on Computer Vision (ICCV). October 22-29, 2017, Venice, Italy. IEEE, 2017: 3008-3017. DOI:10.1109/ICCV.2017.325 . |
| [12] | Zhou C H, Li C L, Póczos B. Unsupervised program synthesis for images by sampling without replacement[EB/OL]. arXiv 2020: 2001.10119. (2020-01-21)[2024-12-06]. . |
| [13] | Jones R K, Walke H, Ritchie D. PLAD: learning to infer shape programs with pseudo-labels and approximate distributions[C]//2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). June 18-24, 2022, New Orleans, LA, USA. IEEE, 2022: 9861-9870. DOI:10.1109/CVPR52688.2022.00964 . |
| [14] | Li L X, Sung M, Dubrovina A, et al. Supervised fitting of geometric primitives to 3D point clouds[C]//2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). June 15-20, 2019, Long Beach, CA, USA. IEEE, 2019: 2647-2655. DOI:10.1109/CVPR.2019.00276 . |
| [15] | Lambourne J G, Willis K D D, Jayaraman P K, et al. BRepNet: a topological message passing system for solid models[C]//2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). June 20-25, 2021, Nashville, TN, USA. IEEE, 2021: 12768-12777. DOI:10.1109/CVPR46437.2021.01258 . |
| [16] | Kania K, Zięba M, Kajdanowicz T. UCSG-net: unsupervised discovering of constructive solid geometry tree[EB/OL]. arXiv 2020: 2006.09102. (2020-06-16)[2024-12-06]. . |
| [17] | Ren D X, Zheng J M, Cai J F, et al. CSG-stump: a learning friendly CSG-like representation for interpretable shape parsing[C]//2021 IEEE/CVF International Conference on Computer Vision (ICCV). October 10-17, 2021, Montreal, QC, Canada. IEEE, 2021: 12458-12467. DOI:10.1109/ICCV48922.2021.01225 . |
| [18] | Chen Z Q, Tagliasacchi A, Zhang H. BSP-net: generating compact meshes via binary space partitioning[C]//2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). June 13-19, 2020. Seattle, WA, USA. IEEE, 2020: 42-51. DOI:10.1109/cvpr42600.2020.00012 . |
| [19] | Yu F G, Chen Z Q, Li M Y, et al. CAPRI-net: learning compact CAD shapes with adaptive primitive assembly[C]//2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). June 18-24, 2022, New Orleans, LA, USA. IEEE, 2022: 11758-11768. DOI:10.1109/CVPR52688.2022.01147 . |
| [20] | Yu F G, Chen Z Q, Tanveer M, et al. D2 CSG: unsupervised learning of compact CSG trees with dual complements and dropouts[EB/OL]. arXiv 2023: 2301.11497. (2023-01-27)[2024-12-06]. . |
| [21] | Wu R D, Xiao C, Zheng C X. DeepCAD: a deep generative network for computer-aided design models[C]//2021 IEEE/CVF International Conference on Computer Vision (ICCV). October 10-17, 2021, Montreal, QC, Canada. IEEE, 2021: 6752-6762. DOI:10.1109/ICCV48922.2021.00670 . |
| [22] | Xu X, Willis K D D, Lambourne J G, et al. SkexGen: autoregressive generation of CAD construction sequences with disentangled codebooks[EB/OL]. arXiv 2022: 2207.04632. (2022-07-11)[2024-12-06]. . |
| [23] | Khan M S, Dupont E, Ali S A, et al. CAD-SIGNet: CAD language inference from point clouds using layer-wise sketch instance guided attention[C]//2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). June 16-22, 2024, Seattle, WA, USA. IEEE, 2024: 4713-4722. DOI:10.1109/CVPR52733.2024.00451 . |
| [24] | Yang B C, Jiang H Y, Pan H, et al. PS-CAD: local geometry guidance via prompting and selection for CAD reconstruction[EB/OL]. arXiv 2024: 2405.15188. (2024-05-24)[2024-12-06]. . |
| [25] | 何皓辰,方正,卢政达,等. PT-MFR:一种基于Point Transformer的CAD模型加工特征识别方法[J].中国科学院大学学报,2026,43(1):115-124. DOI:10.7523/j.ucas.2024.041 . |
| [26] | 黄玉林,梁磊,李卫军,等.基于多尺度特征和注意力机制的深度学习点云压缩[J].中国科学院大学学报, 2024, 41(5): 687-694. DOI:10.7523/j.ucas.2023.077 . |
| [1] | Yuanming XIAO, Liangxing HE. Design of sparse antenna array with low sidelobe based on deep learning [J]. Journal of University of Chinese Academy of Sciences, 2026, 43(5): 650-656. |
| [2] | Ziqian MAO, Sanguo ZHANG. Semi-supervised self-training image classification method based on gamma divergence [J]. Journal of University of Chinese Academy of Sciences, 2026, 43(4): 433-443. |
| [3] | Cui JIANG, Jianbin JIAO. Knowledge-infused deep learning algorithm for vehicle trajectory prediction [J]. Journal of University of Chinese Academy of Sciences, 2026, 43(2): 209-217. |
| [4] | Ruiqi SUN, Wenjuan ZHANG, Zhen LI, Xuesong MA, Junlin MEI. Effect of patch size on super-resolution of large scene remote sensing images [J]. Journal of University of Chinese Academy of Sciences, 2026, 43(1): 93-103. |
| [5] | ZHOU Qingze, GUO Qing. Multispectral remote sensing image pan-sharpening method based on multi-residual network [J]. Journal of University of Chinese Academy of Sciences, 2025, 42(4): 565-575. |
| [6] | ZENG Jianshun, LYU Yanjie, QIN Yuchu. Multi-scale semantic prior features guided street view image inpainting algorithm [J]. Journal of University of Chinese Academy of Sciences, 2025, 42(4): 496-507. |
| [7] | ZHONG Jinyan, CHEN Jun, LI Yu, WU Yewei, GE Xiaoqing. Cross-modal retrieval method based on MFF-SFE for remote sensing image-text [J]. Journal of University of Chinese Academy of Sciences, 2025, 42(2): 236-247. |
| [8] | ZHOU Wenxue, ZHANG Huachun. Lightweight network for fast ship detection in SAR images [J]. Journal of University of Chinese Academy of Sciences, 2024, 41(6): 776-785. |
| [9] | YU Yongsheng, LUO Tiejian. Seamless image completion via GAN inversion [J]. Journal of University of Chinese Academy of Sciences, 2024, 41(5): 705-714. |
| [10] | CHEN Jingwei, LI Yu, CHEN Jun, ZHANG Hongqun. Building extraction method based on MFF-Deeplabv3+ network for high-resolution remote sensing images [J]. Journal of University of Chinese Academy of Sciences, 2024, 41(5): 654-664. |
| [11] | HUANG Yulin, LIANG Lei, LI Weijun, XI Xiaohuan. Point cloud compression of deep learning based on multi-scale feature and attention mechanism [J]. Journal of University of Chinese Academy of Sciences, 2024, 41(5): 687-694. |
| [12] | LIN Yutong, WANG Hong, CHAI Tuanyao. Multi-scale featured convolution neural network-based soybean phenotypic prediction [J]. Journal of University of Chinese Academy of Sciences, 2024, 41(4): 468-476. |
| [13] | WANG Zhaorui, YAN Yan, ZHANG Baoxian. Cooperative traffic signal control method for multi-intersection: an approach based on spatiotemporal dependence multi-agent reinforcement learning [J]. Journal of University of Chinese Academy of Sciences, 2024, 41(3): 398-410. |
| [14] | LI Xueyuan, HAN Congying. Solving quadratic assignment problem based on actor-critic framework [J]. Journal of University of Chinese Academy of Sciences, 2024, 41(2): 275-284. |
| [15] | XIAO Jun, SHI Guangtian. Three-dimensional point cloud denoising [J]. Journal of University of Chinese Academy of Sciences, 2023, 40(5): 577-595. |
| Viewed | ||||||
|
Full text |
|
|||||
|
Abstract |
|
|||||
Copyright © Journal of University of Chinese Academy of Sciences
Support by Beijing Magtech Co.ltd support@magtech.com.cn
