OFF文件格式是一种用三角网格描述三维模型的常用格式之一,对OFF文件格式的详细分析研究是读取、显示及操作OFF文件的前提条件.针对目前OFF文件的简单分析及处理没有形成一定系统的规范和思路这一问题.以Visual C++6.0为开发平台;以MFC为基础进行可视化界面设计;利用C++语言的标准IO库实现对OFF文件进行读取和写入操作;应用OpenGL编程技术实现对OFF文件的显示;建立OFF文件的读取和显示系统,通过实验验证读取和显示效果,并利用格式转化算法完成OFF文件到STL文件的转换.%OFF (Object File Format) is a kind of common format for three-dimensional model described with triangular mesh. The research of OFF is the foundation condition for reading, displaying and other operations. Nowadays, it doesn't have a set of standards and specifications about the simple analysis of OFF. First of all, the software is based on Visual C++ 6.0 developing platform and uses MFC to achieve a visual interface. In addition, we can read and write the OFF file taking advantage of C++ standard I/O library and the view of OFF file is implemented by using OpenGL technology. In the end, we have a system that realizes the functions of reading and displaying for OFF file while it completes the transformation of file from OFF to STL with format conversion algorithms.
展开▼