高级检索+

面向数控加工系统的3D打印切片算法与分区扫描策略

来旭辉, 魏正英

来旭辉, 魏正英. 面向数控加工系统的3D打印切片算法与分区扫描策略[J]. 农业工程学报, 2019, 35(12): 58-64. DOI: 10.11975/j.issn.1002-6819.2019.12.007
引用本文: 来旭辉, 魏正英. 面向数控加工系统的3D打印切片算法与分区扫描策略[J]. 农业工程学报, 2019, 35(12): 58-64. DOI: 10.11975/j.issn.1002-6819.2019.12.007
Lai Xuhui, Wei Zhengying. 3D printing slice algorithm and partition scanning strategy for numerical control machining system[J]. Transactions of the Chinese Society of Agricultural Engineering, 2019, 35(12): 58-64. DOI: 10.11975/j.issn.1002-6819.2019.12.007
Citation: Lai Xuhui, Wei Zhengying. 3D printing slice algorithm and partition scanning strategy for numerical control machining system[J]. Transactions of the Chinese Society of Agricultural Engineering, 2019, 35(12): 58-64. DOI: 10.11975/j.issn.1002-6819.2019.12.007

面向数控加工系统的3D打印切片算法与分区扫描策略

基金项目: 国家重点研发计划(2017YFB1103102);2017年广东省省级科技计划项目(2017B090911015)

3D printing slice algorithm and partition scanning strategy for numerical control machining system

  • 摘要: 为实现大型农机零部件的快速修复与更换,该文针对3D打印协同数控成形大型零件中的折线拐点金属过堆积、工件翘曲变形、层厚难以实时调整等问题,提出数控系统与电子束成形相结合的3D打印切片算法与分区扫描策略。为提高切片速度,实现成形过程中的层厚实时调整,采用反向光线追踪算法对三维模型渲染切片,通过MS(marching squares)算法提取二值图像的坐标序列,快速获取指定层的轮廓坐标;为避免成形过程中电子枪运行速度不均匀引起的金属过堆积现象,选用B样条基函数对轮廓数据进行曲线插值,结合数控系统的曲线插补命令,实现恒定线速度成形。针对大型零件在成形过程中的变形问题,采用六边形分区与平行线变角度扫描技术,根据各分区图案的形心欧式距离规划扫描顺序,实现变形控制。结果表明:采用非均匀有理B样条曲线和直线分段插值后,拟合曲线对原始多重曲面截线的逼近误差范围与切片数据相比减少了30%。选用网格数量为1 483 132的STL(stereolithography)模型进行效率测试,该算法切片用时90 s,与商用软件Magics15.01切片相比用时减少了34.6%,与开源软件Cura15.06切片相比用时减少了31.4%,研究结果可为大型零件成形过程中的层厚动态调整及变形控制等提供新的思路。
    Abstract: Abstract: In the field of selective melting using laser or electron beam as heat source, the rapid development of augmentation manufacturing technology makes it possible to form small parts precisely, but there is still great resistance to the printing of large and medium-sized parts. In order to solve the problem of rapid repair and replacement of large and medium-sized key components of agricultural machinery and equipment, a solution combining numerical control system and electron beam forming is proposed, which combines the high precision of the computerized numerical control system with the high efficiency of electron beam forming, and can quickly form the precision blank of the original part. In order to solve the jitter problem of the electron gun in forming a small linear contour, the NURBS basis function is used to perform curve interpolation on the contour data. When the angle between the adjacent lines exceeds 140 degrees, it is considered that the part of the data is composed of straight line and curved line, and the intersection point is the dividing point of the straight line portion and the curved portion. And then the adjacent points, repeat points and internal points in the same line are removed to reduce the amount of command data of the G code, and B-Spline curve processing function of computerized numerical control system is adopted to reduce the starting and stopping times of motor, thus ensuring that the linear speed is constant and the remaining fluctuation is controlled within 1 mm during the curve processing. Aiming at warping deformation caused by too long single scanning line, a zoning scanning strategy is proposed. According to the centroid of each zoning, the forming sequence is planned according to the principle of farthest distance. Randomly select a pattern based on the centroid of the polygon as the first forming area, and then the centroid coordinates of other polygons are read from memory in order to ensure the maximum euclidean distance between the coordinate and the centroid coordinates of all processed polygons. Aiming at the problem of layer thickness dynamic adjustment in the forming process, the GPU(graphics processing unit) slicing technique of 3D model is proposed. The STL file is colored in parallel according to the normal vector and vertex coordinates. The voxel information of the specified layer is dynamically obtained by adjusting the projection matrix to the slice height. The matching square contour extraction algorithm is used to read the pixel information clockwise from the upper left of the picture, and then traverse the entire binary image against the search direction table to find the image boundary, and finally the contour matrix is transformed into an ordered 2D contour coordinates based on the ratio of the model bounding box length to the pixel width. Based on this, closed-loop control of forming process is realized by dynamically calculating slice and partition filling data in two plane printing gaps. The results show that the projection matrix can be adjusted to the height of the slice during the rendering of the 3D model. The cross-sectional binary image can be obtained by using the intersection of the viewpoint and the voxel. The contour data can be dynamically extracted by using the matching square algorithm to search. After segmentation fitting of the slice data using the spline basis function, the fitting curve is closer to the original multi-surface section line. When the triangle tolerance is 1 mm, the conversion error of the STL file can be reduced by 30%. As the number of triangular meshes increases, the efficiency of the algorithm is improved. The STL file containing 1 483 132 triangular meshes can be cut into 4 488 layers in only 90 s, which is 34.6% less than that of Magic Slices. Compared with the multi-segment linear forming, after fitting with the NURBS basis function, the fitting data has a constant linear velocity during the forming process, resulting in the same amount of metal being fed into the molten pool per unit time. In addition, the maximum weld height of the data after fitting is 0.65 mm. Compared with the original slicing data, the weld height fluctuation range is reduced by 67.8%, which is more conducive to subsequent stack forming.
  • [1] Vayssette B, Saintier N, Brugger C, et al. Surface roughness of Ti-6Al-4V parts obtained by SLM and EBM: Effect on the high cycle fatigue life[J]. Procedia Engineering, 2018, 213: 89-97.
    [2] Volker W, Philipp D, Hermann S, et al. Effects of build orientation on surface morphology and bone cell activity of additively manufactured Ti6Al4V specimens[J]. Materials, 2018, 11(6): 915-929.
    [3] Almangour B, Grzesiak D, Yang J M. Selective laser melting of TiB2/316L stainless steel composites: The roles of powder preparation and hot isostatic pressing post-treatment[J]. Powder Technology, 2017, 309: 37-48.
    [4] Wang Pan, Nai Mui Ling Sharon, Sin Wai Jack, et al. Realizing a full volume component by in-situ welding during electron beam melting process[J]. Additive Manufacturing, 2018, 22: 375-380.
    [5] Günther J, Brenne F, Droste M, et al. Design of novel materials for additive manufacturing-isotropic microstructure and high defect tolerance[J]. Scientific Reports, 2018, 8(1): 1298-1312.
    [6] Basile G, Baudana G, Marchese G, et al. Characterization of an additive manufactured TiAl alloy-steel joint produced by electron beam welding[J]. Materials, 2018, 11(1): 149-158.
    [7] Terrazas C A, Murr L E, Bermudez D, et al. Microstructure and mechanical properties of Ti-6Al-4V-5% hydroxyapatite composite fabricated using electron beam powder bed fusion[J]. Journal of Materials Science & Technology, 2019, 35(2): 309-321.
    [8] Bingjing Z, Hong W, Rongzeng Y, et al. Properties evaluation of a Ti-6Al-4V alloy scaffold fabricated by electron beam melting and selective laser melting for bone tissue engineering[J]. Journal of Biomaterials and Tissue Engineering, 2016, 6(10): 832-842.
    [9] Everhart W, Dinardo J, Barr C. The effect of scan length on the structure and mechanical properties of electron beam-melted Ti-6Al-4V[J]. Metallurgical & Materials Transactions A, 2016, 48(2): 1-9.
    [10] 韩建栋,林峰,齐海波,等. 粉末预热对电子束选区熔化成形工艺的影响[J]. 焊接学报,2008,29(10):77-80.Han Jiandong, Lin Feng, Qi Haibo, et al. Effects of powder preheating in electron beam selective melting process[J]. Transactions of the China Welding Institution, 2008, 29(10): 77-80. (in Chinese with English abstract)
    [11] Tian Y, Gora W S, Cabo A P, et al. Material interactions in laser polishing powder bed additive manufactured Ti6Al4V components[J]. Additive Manufacturing, 2018, 20: 11-22.
    [12] Sing S L, An J, Yeong W Y, et al. Laser and electron-beam powder-bed additive manufacturing of metallic implants: A review on processes, materials and designs[J]. Journal of Orthopaedic Research, 2016, 34(3): 369-385.
    [13] Riaz M Q, Caputo M, Ferraro M M, et al. Influence of process-induced anisotropy and synovial environment on wear of EBM built Ti6Al4V joint implants[J]. Journal of Materials Engineering & Performance, 2018, 27(7): 3460-3471.
    [14] Seifi M, Salem A, Satko D, et al. Defect distribution and microstructure heterogeneity effects on fracture resistance and fatigue behavior of EBM Ti-6Al-4V[J]. International Journal of Fatigue, 2017, 94(1): 263-287.
    [15] Wang P, Sin W J, Mls N, et al. Effects of processing parameters on surface roughness of additive manufactured Ti-6Al-4V via electron beam melting[J]. Materials, 2017, 10(10): 1121-1132.
    [16] Dinwiddie R B, Dehoff R R, Lloyd P D, et al. Thermographic in-situ process monitoring of the electron-beam melting technology used in additive manufacturing[J]. Current Opinion in Anaesthesiology, 2013, 23(5): 650-655.
    [17] Minetto R, Volpato N, Stolfi J, et al. An optimal algorithm for 3d triangle mesh slicing. Computer-Aided Design, 2017, 92: 1-10.
    [18] Pandey P M, Reddy N V, Dhande S G. Real time adaptive slicing for fused deposition modelling. International Journal of Machine Tools and Manufacture, 2003, 43(1): 61-71.
    [19] Song Yanzhi, Yang Zhouwang, Liu Yuan, et al. Function representation based slicer for 3D printing[J]. Computer Aided Geometric Design, 2018, 62: 276-293.
    [20] Manmadhachary A, Ravi K Y, Krishnanand L. Improve the accuracy, surface smoothing and material adaption in STL file for RP medical models[J]. Journal of Manufacturing Processes, 2016, 21: 46-55.
    [21] Zrnic D S, Melnikov V M, Doviak R J, et al. Scanning strategy for the multifunction phased-array radar to satisfy aviation and meteorological needs[J]. IEEE Geoscience and Remote Sensing Letters, 2015, 12(6): 1204-1208.
    [22] Ghouse S, Babu S, Van Arkel R J, et al. The influence of laser parameters and scanning strategies on the mechanical properties of a stochastic porous material[J]. Materials & Design, 2017, 131: 498-508.
    [23] 邓诗诗,杨永强,李阳,等. 分区扫描路径规划及其对SLM成型件残余应力分布的影响[J]. 中国激光,2016,43(12):67-75.Deng Shishi, Yang Yongqiang, Li Yang, et al. Planning of area-partition scanning path and its effect on residual stress of SLM molding parts[J]. Chinese Journal of Lasers, 2016, 43(12): 67-75. (in Chinese with English abstract)
    [24] Chun-Yu Tsai, Chung-Wei Cheng, An-Chen Lee, et al. Synchronized multi-spot scanning strategies for the laser powder bed fusion process[J]. Additive Manufacturing, 2019, 27: 1-7.
    [25] 孟亮,李雄,黄永俊,等. 激光淬火及熔覆技术提高柑橘枝粉碎机65Mn钢锤片耐磨性[J]. 农业工程学报,2018,34(17):54-60.Meng Liang, Li Xiong, Huang Yongjun, et al. Improvement on wear resistance of citrus twig grinding hammer of 65Mn steel by laser quenching and laser cladding[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2018, 34(17): 54-60. (in Chinese with English abstract)
    [26] 孙浩,凌刚,李洪文,等. 扫描间距对45钢激光熔凝强化组织性能的影响[J]. 农业工程学报,2011,27(2):156-160.Sun Hao, Ling Gang, Li Hongwen, et al. Influence of scanning interval on microstructure and abrasive wear resistance of 45 Steel by laser melting[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2011, 27(2): 156-160. (in Chinese with English abstract)
    [27] Daniel K, David P, Libor P, et al. Influence of scanning strategies on processing of aluminum alloy EN AW 2618 using selective laser melting[J]. Materials, 2018, 11(2): 298-316.
    [28] Y S Lee, M M Kirka, R B Dinwiddie, et al. Role of scan strategies on thermal gradient and solidification rate in electron beam powder bed fusion[J]. Additive Manufacturing, 2018, 22: 516-527.
    [29] Jia S, Wenheng W, Liang Z, et al. Role of scanning strategy on residual stress distribution in Ti-6Al-4V alloy prepared by selective laser melting[J]. Optik, 2018, 170: 342-352.
    [30] Han Jitai, Ge Yanan, Mao Yuxin, et al. A study on the surface quality of the 3D printed parts caused by the scanning strategy[J]. Rapid Prototyping Journal, 2019, 25(2): 247-254.
    [31] Staub, Spierings, Wegener. Correlation of meltpool characteristics and residual stresses at high laser intensity for metal lpbf process[J]. Advances in Materials and Processing Technologies,2019, 5(1): 153-161.
  • 期刊类型引用(5)

    1. 陈哲,刘丰,吴晓川,杜悟迪. 复合材料预制体多针多向协同织造路径生成方法研究. 中国机械工程. 2021(10): 1151-1156 . 百度学术
    2. 吴艳芳,高鹏. 基于多维度控制的数控加工变形控制方法研究. 机械制造与自动化. 2021(03): 149-152 . 百度学术
    3. 华洪良,郭魂,苏纯,吴小峰,陈勇将,江昌勇. 面向智能制造创新人才培养的机器人实验室开放项目实践探索. 常州工学院学报. 2021(05): 93-96 . 百度学术
    4. 肖旭,黄亚超,管声启,李振浩,卢浩. 面向五轴3D打印的G代码解释器设计与实现. 西安工程大学学报. 2020(03): 55-60 . 百度学术
    5. 刘威,朱赖红. 基于骨架偏置填充的3D打印分区扫描策略研究. 计算机仿真. 2020(06): 207-211 . 百度学术

    其他类型引用(1)

计量
  • 文章访问数:  1309
  • HTML全文浏览量:  1
  • PDF下载量:  491
  • 被引次数: 6
出版历程
  • 收稿日期:  2019-05-18
  • 修回日期:  2019-06-09
  • 发布日期:  2019-06-14

目录

    /

    返回文章
    返回