STL文件格式采用一系列三角面来表达三维实体模型,是快速成型领域描述三维实体模型的标准文件格式。通过研究STL文件格式的特点,以Visual C++6.0作为开发平台,结合OpenGL图形编程技术,成功实现STL三维模型的可视化。针对STL文件存在大量冗余数据及无几何拓扑关系等缺点,给出了相应的去冗余数据存储方法以及建立几何拓扑关系的解决方案;节省了存储空间,并为后续进行STL直接切片提供了良好的数据结构。
STL file format which expresses a 3D model with a series of triangles is considered as the standard file format in Rapid Prototyping(RP).By studying the characteristics of STL file format,STL visualization was successfully realized under the Visual C++6.0 platform when integrated with the OpenGL graphics programming technology.As for some disadvantages of STL,like existing plenty of redundant information and no geometry topological relationship,some solutions were presented,including getting rid of redundant information and building geomtry topological relationship,which could save much space and offer a good data structure for the following STL direct slicing process.