摘要
讨论了如何得到闭合AutoCAD二维图形的外包多边形的算法,可以实现在一个含有多个闭合图形的DWG文件,同时得到每一个图形的多边形,精度可以控制。由于对块递归做了处理,因此对于有块的DWG文件也可以同样处理。本算法应用于某企业的板材优化项目中,取得了很好的效果。对于使用AutoCAD进行二次开发,有一定的参考和借鉴意义。
This article introduces the realization of the polygon outline arithmetic for AutoCAD two dimensional graphic based on ARX. This arithmetic can gain all polygons of a DWG file including numbers of closed graphics and control the precision. It arithmetic is valid for the DWG file including blocks on account of dealing with block. It arithmetic obtained a good result when it was applied to the project for board optimization of one enterprise. For developers who use tools based on AutoCAD to say, this article has a certain referable value.
出处
《成都理工大学学报(自然科学版)》
CAS
CSCD
北大核心
2008年第5期559-562,共4页
Journal of Chengdu University of Technology: Science & Technology Edition