An Automatic Feature Information Recognition Algorithm Based on MBD Model
-
摘要: 针对特征识别技术对产品制造信息识别的缺失以及匹配算法的复杂性问题,提出了一种基于MBD模型的特征信息自动识别算法。首先,通过EXPRESS和Java映射,构建STEP文件解析器解析MBD模型信息。其次,建立基于图和提示的几何特征识别算法,用表征面邻接图作为匹配算法的数据结构,以提示作为搜索与特征库进行匹配。然后,提出基于关系树的产品制造信息识别方法识别产品制造信息。最后,以轴和机匣作为测试对象,在Intellij IDEA平台中对所提方法进行了验证,分析了匹配算法时间复杂度。结果表明,该方法能够识别几何特征信息和产品制造信息,本匹配算法时间复杂度为O(n),优于时间复杂度为O(n2)的传统匹配算法。Abstract: To solve the problems that feature recognition technology are the lack of product manufacturing information recognition and the complexity of matching algorithm, an automatic feature information recognition algorithm based on MBD (Model-based definition) model is proposed. Firstly, a STEP file parser is built to parse the MBD model information through the Express and Java mappings. Secondly, a geometric feature recognition algorithm based on graph and hint was established. The representation surface adjacency graph was used as the data structure of the matching algorithm, and the hint was used to search and match the predefined library. Then, the recognition algorithm of product manufacturing information based on the relational tree is proposed to recognize product manufacturing information. Finally, the shaft and the casing were taken as test objects to verify the proposed method with the IntelliJ IDEA platform, and the time complexity of the matching algorithm was analyzed. The results show that this method can recognize the geometric feature information and the product manufacturing information. The time complexity of the recognition algorithm is O(n), being better than that of the traditional matching algorithm, which is O(n2).
-
表 1 数据类型映射
Table 1. Data type mapping
EXPRESS数据类型 Java 数据类型 NUMBER double REAL double INTEGER int STRING String BINARY byte[] BOOLEAN,LOGICAL boolean,enum(User-Defined) ARRAY Arrays LIST ArrayList SET Set 表 2 点数法定义
Table 2. Point method definition
符号 数组 符号 数组 0 (13) 5 (10) 1 (3,2) 6 (12) 2 (8) 7 (3) 3 (7,6) 8 (16) 4 (4) 9 (12) · (8,2) R (7,2) a (2,16) (2,2,2,2) -
[1] AL-WSWASI M, IVANOV A, MAKATSORIS H. A survey on smart automated computer-aided process planning (ACAPP) techniques[J]. The International Journal of Advanced Manufacturing Technology, 2018, 97(1-4): 809-832. doi: 10.1007/s00170-018-1966-1 [2] QUINTANA V, RIVEST L, PELLERIN R, et al. Will model-based definition replace engineering drawings throughout the product lifecycle? A global perspective from aerospace industry[J]. Computers in Industry, 2010, 61(5): 497-508. doi: 10.1016/j.compind.2010.01.005 [3] TESSIER S, WANG Y. Ontology-based feature mapping and verification between CAD systems[J]. Advanced Engineering Informatics, 2013, 27(1): 76-92. doi: 10.1016/j.aei.2012.11.008 [4] FAN S T, YU Y, DAI S, et al. STEP AP242 format expression and development of MBD model[C]//Proceedings of the 2017 2nd International Conference on Materials Science, Machinery and Energy Engineering. Paris: MSMEE, 2017: 876-882. [5] JOSHI S, CHANG T C. Graph-based heuristics for recognition of machined features from a 3D solid model[J]. Computer-Aided Design, 1988, 20(2): 58-66. doi: 10.1016/0010-4485(88)90050-4 [6] WOO T C. Feature extraction by volume decomposition[C]//Conference on CAD/CAM Technology in Mechanical Engineering. Cambridge: MIT Press, 1982: 76-94 [7] PRABHAKAR S, HENDERSON M R. Automatic form-feature recognition using neural-network-based techniques on boundary representations of solid models[J]. Computer-Aided Design, 1992, 24(7): 381-393. doi: 10.1016/0010-4485(92)90064-H [8] MAREFAT M, KASHYAP R L. Automatic construction of process plans from solid model representations[J]. IEEE Transactions on Systems, Man, and Cybernetics, 1992, 22(5): 1097-1115. doi: 10.1109/21.179847 [9] VANDENBRANDE J H, REQUICHA A A G. Spatial reasoning for the automatic recognition of machinable features in solid models[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 1993, 15(12): 1269-1285. doi: 10.1109/34.250845 [10] PAL P, KUMAR A. A hybrid approach for identification of 3D features from CAD database for manufacturing support[J]. International Journal of Machine Tools and Manufacture, 2002, 42(2): 221-228. doi: 10.1016/S0890-6955(01)00105-5 [11] 罗云中, 盛步云, 陈贻堃. 基于图匹配的注塑模具加工特征识别[J]. 现代制造工程, 2020(11): 61-67.LUO Y Z, SHENG B Y, CHEN Y K. Machining feature recognition of injection mold based on graph matching[J]. Modern Manufacturing Engineering, 2020(11): 61-67. (in Chinese) [12] 刘雪梅, 贾勇琪, 陈祖瑞, 等. 缸体类零件加工特征识别方法[J]. 计算机集成制造系统, 2016, 22(5): 1197-1204.LI X M, JIA Y Q, CHEN Z R, et al. Recognition of machining feature for engine cylinder blocks[J]. Computer Integrated Manufacturing Systems, 2016, 22(5): 1197-1204. (in Chinese) [13] LI H Y, HUANG Y B, SUN Y H, et al. Hint-based generic shape feature recognition from three-dimensional B-rep models[J]. Advances in Mechanical Engineering, 2015, 7(4): 2071727296. [14] 刘金山, 廖文和, 刘长毅. 基于图的夹具特征识别方法研究[J]. 机械科学与技术, 2007, 26(6): 723-727. doi: 10.3321/j.issn:1003-8728.2007.06.011LIU J S, LIAO W H, LIU C Y. Graph-based fixture feature recognition method[J]. Mechanical Science and Technology for Aerospace Engineering, 2007, 26(6): 723-727. (in Chinese) doi: 10.3321/j.issn:1003-8728.2007.06.011 [15] 刘金山, 廖文和, 刘长毅, 等. 基于双链遗传算法的复杂特征识别方法研究[J]. 机械科学与技术, 2008, 27(4): 437-441. doi: 10.3321/j.issn:1003-8728.2008.04.005LIU J S, LIAO W H, LIU C Y, et al. On recognition of complicated features using double-link genetic algorithm[J]. Mechanical Science and Technology for Aerospace Engineering, 2008, 27(4): 437-441. (in Chinese) doi: 10.3321/j.issn:1003-8728.2008.04.005 [16] IBRAHIM A D, HUSSEIN H M A, ABDELWAHAB S A. Automatic feature recognition of cross holes in hollow cylinders[J]. Journal of The Institution of Engineers (India):Series C, 2021, 102(2): 257-274. doi: 10.1007/s40032-020-00649-5 [17] GUO L, ZHOU M, LU Y Q, et al. A hybrid 3D feature recognition method based on rule and graph[J]. International Journal of Computer Integrated Manufacturing, 2021, 34(3): 257-281. doi: 10.1080/0951192X.2020.1858507 [18] LIU X J, LI X, XING J L, et al. Integrating modeling mechanism for three-dimensional casting process model based on MBD[J]. The International Journal of Advanced Manufacturing Technology, 2018, 94(9-12): 3145-3162. doi: 10.1007/s00170-016-9479-2 [19] BIJNENS J, KELLENS K, CHESHIRE D. Accuracy of geometry data exchange using STEP AP242[J]. Procedia CIRP, 2018, 78: 219-224. doi: 10.1016/j.procir.2018.09.048 [20] DING P P, ZHENG X H, ZHANG J, et al. The method of machining process parameter generation based on MBD[J]. IOP Conference Series:Materials Science and Engineering, 2018, 435: 012048. doi: 10.1088/1757-899X/435/1/012048 [21] 方忆湘, 刘恩福, 高婷, 等. 基于模型定义的零件数据集三坐标测量信息获取[J]. 计算机集成制造系统, 2013, 19(7): 1532-1540.FANG Y X, LIU E F, GAO T, et al. Coordinate measuring information extraction of parts based on MBD dataset[J]. Computer Integrated Manufacturing Systems, 2013, 19(7): 1532-1540. (in Chinese) [22] 张胜文, 周曦, 李滨城, 等. 基于图像深度学习的零件加工特征信息提取方法[J]. 中国机械工程, 2022, 33(3): 348-355. doi: 10.3969/j.issn.1004-132X.2022.03.011ZHANG S W, ZHOU X, LI B C, et al. Information extraction method of part machining features based on image deep learning[J]. China Mechanical Engineering, 2022, 33(3): 348-355. (in Chinese) doi: 10.3969/j.issn.1004-132X.2022.03.011