计算机工程与应用 ›› 2013, Vol. 49 ›› Issue (15): 32-35.

• 理论研究、研发设计 • 上一篇    下一篇

基于DXF的数控切割优化排序算法的研究与实现

沈志荣,谢明红   

  1. 华侨大学 机电及自动化学院,福建 厦门 361021
  • 出版日期:2013-08-01 发布日期:2013-07-31

Research and implementation of optimized sorting algorithm for NC cutting machine based on DXF

SHEN Zhirong, XIE Minghong   

  1. College of Mechanical Engineering and Automation, Huaqiao University, Xiamen, Fujian 361021, China
  • Online:2013-08-01 Published:2013-07-31

摘要: 采用Visual C++ 6.0开发平台实现了DXF文件读取的接口技术。针对图元排序问题,提出了一种优化排序算法,包括封闭图形的有序化处理、矢量化判断轮廓顺逆方向和包络矩形法结合基于射线法判断轮廓岛屿关系。针对全局路径优化问题,提出一种易于实现的相邻最短路径优化算法,通过实例证实了算法的有效性和实用性。该算法有效缩短了数控切割加工的辅助时间,提高了加工效率,并且能广泛应用于自动编程数控系统中。

关键词: 绘图交换文件(DXF), 优化排序算法, 路径优化, 数控(NC)代码, 数控切割

Abstract: This paper realizes the interface technology to read the DXF file by using the development platform of Visual C++6.0. In view of the sorting problem, an optimization algorithm is proposed. The algorithm includes ordering the close graphs, judging the direction of the contours by vectorizing the graphs, and judging the relationship between the close graphs by combining envelope rectangle method with based on the ray method. Then the paper studies how to optimize the global path, and puts forward a path optimization algorithm based on the shortest adjacency which is easy to implement. And the paper proves the validity and practicability of the algorithm through an instance. The algorithms can shorten the auxiliary cutting process time effectively, improve the processing efficiency and can be widely applied to the NC automatic programming system.

Key words: Drawing Exchange File(DXF), optimized sorting algorithm, optimization of path, Numerical Control(NC) code, Numerical Control(NC) cutting