STL文件作为一种通用的三维数据文件格式,广泛应用于快速成型及其他领域。如何快速读取海量数据的STL文件并显示,是模型后续操作的一个首要环节。本文针对海量数据的特点,采用内存映射手段、基于哈希表结构的冗余顶点删除和OpenGL中显示列表技术等,对海量STL文件的快速读取和显示进行了研究,并和国外先进软件进行了比较,实验数据表明本文方法较Surfacer软件和RapidForm软件提高效率25%~40%左右。
As a general three-dimenslonal data file format, stereo lithographic (STL) files have been widely used in rapid prototyping systems and many other fields. How to load and visualize STL files rapidly is key to subsequent model manipulation. According to the characteristics of massive data, memory mapping and Hash table-based method for deleting redundancy vertex fast in STL files and OpenGL display lists have been used to accelerate the loading and visualization. Experiment shows that the proposed method is 25% -40% more efficient than the commercial software packages Surfacer and RapidForm.