计算机应用 ›› 2016, Vol. 36 ›› Issue (2): 535-540.DOI: 10.11772/j.issn.1001-9081.2016.02.0535

• 虚拟现实与数字媒体 • 上一篇    下一篇

结合边折叠和局部优化的网格简化算法

刘峻1,2,3, 范豪1, 孙宇1,2, 陆向艳1,2, 刘艳4   

  1. 1. 广西大学 计算机与电子信息学院, 南宁 530004;
    2. 广西信息科学实验中心, 广西 桂林 541004;
    3. 广西多媒体通信与网络技术重点实验室培育基地(广西大学), 南宁 530004;
    4. 国家气象中心, 北京 100081
  • 收稿日期:2015-07-16 修回日期:2015-08-31 出版日期:2016-02-10 发布日期:2016-02-03
  • 通讯作者: 刘峻(1974-),男,广西贵港人,副教授,博士,主要研究方向:虚拟现实、并行计算。
  • 作者简介:范豪(1990-),男,河南信阳人,硕士研究生,主要研究方向:图形图像处理、分布式仿真;孙宇(1981-),女,广西南宁人,讲师,博士,主要研究方向:智能计算;陆向艳(1973-),女,广西隆安人,副教授,硕士,主要研究方向:并行计算;刘艳(1972-),女,广西南宁人,副研究员,博士,主要研究方向:计算机仿真。
  • 基金资助:
    南宁市科学研究与技术开发计划项目(20156197);广西高校科研项目(KY2015YB008)。

Mesh simplification algorithm combined with edge collapse and local optimization

LIU Jun1,2,3, FAN Hao1, SUN Yu1,2, LU Xiangyan1,2, LIU Yan4   

  1. 1. School of Computer and Electronic Information, Guangxi University, Nanning Guangxi 530004, China;
    2. Guangxi Experiment Center of Information Science, Guilin Guangxi 541004, China;
    3. Guangxi Key Laboratory of Multimedia Communications and Network Technology(Guangxi University), Nanning Guangxi 530004, China;
    4. National Meteorological Center, Beijing 100081, China
  • Received:2015-07-16 Revised:2015-08-31 Online:2016-02-10 Published:2016-02-03

摘要: 针对目前网格简化算法在将三维模型简化到较低分辨率时,网格模型的细节特征丢失、网格质量不佳的问题,提出一种保持特征的高质量网格简化算法。引入顶点近似曲率的概念,并将其与边折叠的误差矩阵结合,使得简化模型的细节特征在最大限度上得到保持。同时分析简化后三角网格的质量,对三角网格作局部优化处理,减少狭长三角形的数量,提高简化模型的网格质量。使用Apple模型和Horse模型进行实验,并与一种经典的基于边折叠的网格简化算法以及其改进算法之一进行对比。实验结果显示,两种对比算法三角网格分布过于均匀,局部细节模糊不清,而所提算法的三角网格在曲率大的区域稠密,在平坦处稀疏,细节特征清晰可辨;简化模型的几何误差的数量值与两种对比算法处于同一数量级;所提算法的简化网格的平均质量远高于两种对比算法。实验结果表明,在不扩大几何误差的情况下,所提算法不仅具有较强的细节特征保持能力,而且简化模型的网格质量较高,视觉效果较好。

关键词: 网格简化, 边折叠, 误差矩阵, 局部优化, 网格质量

Abstract: Aiming at the problems that the detail features of the mesh models are lost and the qualities of meshes are bad when the three-dimensional models are simplified to a lower resolution with the mesh simplification algorithms, a high quality mesh simplification algorithm was proposed based on feature preserving. By introducing the concept of approximate curvature of the vertex and combining it with the error matrix of the edge collapse in the algorithm, the detail features of the simplified model were reserved to a great extent. At the same time, by analyzing the quality of simplified triangular mesh, optimizing triangular mesh locally, reducing the amount of narrow triangles, the quality of simplified model was improved. The proposed algorithm was tested on Apple model and Horse model, and compared with two algorithms, one of them is a classical mesh simplification algorithm based on edge collapse, the other is an improved algorithm of the classical one. The experimental results show that when the models are simplified to a lower resolution, the triangular meshes of two contrast algorithms are too evenly distributed, and the local details are not clear, while the triangular meshes of the proposed algorithm are intensive in the areas with large curvature but sparse in the flat areas, and the local details are legible. Compared with the two contrast algorithms, the geometric errors of the simplified model in the proposed algorithm are of the same magnitude; the average qualities of the simplified meshes in the proposed algorithm are much higher than those of two contrast algorithms. The results verify that not only the proposed algorithm can efficiently maintain the detail features of the original model, but also the simplified model has high quality and looks better.

Key words: mesh simplification, edge collapse, error matrix, local optimization, mesh quality

中图分类号: