摘要
DXF文件格式是传统图形开发中最常用的图形交换格式之一,众多第三方开发的图形软件均加入了对DXF文件的支持。为开发一套三维可视化仿真数据分析软件,首先就必须解决对DXF文件的读取及显示问题。文章详细分析了ASCII码格式DXF文件的数据结构特点,然后,使用VB6.0从中读取数据,并利用OpenGL的模型绘制和渲染功能,实现了三维模型的重构以及交互控制。这种处理方法既能满足快速建模的需要,又能高效地实现友好的交互功能。
The DXF format is one of the most widely used graphics exchange formats in the traditional graphics application development. A lots of 3rd party developed graphics software have added support for DXF format. To develop a set of three-dimensional visualization simulation and data analysis software, the reading and display of DXF format document must be solved firstly. The data structure of DXF format based on ASCII is analyzed in detail, and then VB6.0 is used to read data from the file. And OpenGL model drawing and rendering functions are utilized to achieve reconstruction and interaction control of a three-dimensional model. This processing method can not only meet the needs of modeling quickly but also achieve friendly interaction function efficiently.
出处
《计算机时代》
2009年第9期39-41,共3页
Computer Era