计算机科学 ›› 2026, Vol. 53 ›› Issue (9): 240-248.doi: 10.11896/jsjkx.260600085

• 计算机图形学&多媒体 • 上一篇    下一篇

基于采样代理与动态规划的高效点到网格近似距离查询

王鹏飞1, 郭清昊1, 曾琼1, 陈双敏2, 辛士庆1, 屠长河1   

  1. 1 山东大学计算机科学与技术学院 山东 青岛 266237
    2 青岛科技大学信息科学技术学院 山东 青岛 266061
  • 收稿日期:2026-03-12 修回日期:2026-06-17 出版日期:2026-09-15 发布日期:2026-09-10
  • 通讯作者: 陈双敏(csmqq@163.com)
  • 作者简介:(pengfei1998@foxmail.com)
  • 基金资助:
    山东省自然科学基金面上项目(ZR2025MS986)

Efficient Approximate Point-to-Mesh Distance Query via Sampling Proxies and Dynamic Programming

WANG Pengfei1, GUO Qinghao1, ZENG Qiong1, CHEN Shuangmin2, XIN Shiqing1 , TU Changhe1   

  1. 1 College of Computer Science and Technology,Shandong University,Qingdao,Shandong 266237,China
    2 College of Information Science and Technology,Qingdao University of Science and Technology,Qingdao,Shandong 266061,China
  • Received:2026-03-12 Revised:2026-06-17 Published:2026-09-15 Online:2026-09-10
  • About author:WANG Pengfei,born in 1998,Ph.D candidate,is a member of CCF(No.A18958G).His main research interests include computational geometry and computer graphics.
    CHEN Shuangmin,born in 1982,Ph.D,associate professor,is a member of CCF(No.J1285M).Her main research interests include computational geometry and computer graphics.
  • Supported by:
    General Program of Shandong Provincial Natural Science Foundation(ZR2025MS986).

摘要: 点到网格表面的最近距离查询是计算机图形学领域的基础任务,广泛应用于碰撞检测、物理模拟及曲面配准等场景。然而,传统基于空间划分(如KD树、八叉树)或包围体层级(BVH)的加速结构,常无法有效过滤冗余分支导致查询性能显著退化,在查询点远离模型表面时尤为明显。近年来,基于增量Delaunay构造的动态规划最近点查询算法(DP-NNS)在点云近邻查询中展现出显著优势,然而其查询表的构建依赖点与点之间的Voronoi cell邻接关系,三角网格广义Voronoi图的计算复杂且缺乏实用工具,使得该算法无法直接推广至点到网格的距离查询场景。为此,提出一种基于DP-NNS框架的近似点到网格距离查询算法。三角网格由顶点、边、面3类基本几何元素构成,为每类元素配置代理点以近似其广义Voronoi胞元:顶点直接作为代理点插入,边与面则基于统一的密度参数自适应采样代理点,将3类元素的邻接关系统一转化为代理点之间的Delaunay邻接关系,从而将DP-NNS框架近似延伸至几何元素粒度,构建几何元素级查询表。查询阶段针对3类元素分别设计距离计算策略,对面片结合包围球估计进行高效剪枝,仅在必要时计算精确距离。在多个标准数据集上的实验结果表明,与FCPW,Embree,Libigl等方法相比,所提方法的查询速度提升2至10倍,在查询点远离模型表面时优势尤为显著,同时保持了较高的近似精度。

关键词: 点到网格距离查询, 近似算法, 动态规划, Delaunay 三角化, 广义Voronoi图

Abstract: Nearest distance query from a point to a mesh surface is a fundamental operation in computer graphics,with broad applications in collision detection,physical simulation,and surface registration.However,traditional acceleration structures based on spatial partitioning(e.g.,KD-tree,octree) or bounding volume hierarchies(BVH) often suffer from performance degradation due to their inability to effectively prune redundant branches,particularly when query points are distant from the model surface.Recently,the dynamic programming-based nearest neighbor search algorithm(DP-NNS),built upon incremental Delaunay construction,has demonstrated remarkable advantages in point cloud nearest neighbor queries.Nevertheless,its query table construction relies on Voronoi cell adjacency relationships between points,and the generalized Voronoi diagram of triangle meshes is computationally intractable in practice,preventing DP-NNS from being directly extended to point-to-mesh distance queries.To address this issue,this paper proposes an approximate point-to-mesh distance query algorithm built upon the DP-NNS framework.A triangle mesh consists of three types of geometric primitives:vertices,edges,and faces.Corresponding proxy points are assigned to approximate its generalized Voronoi cells.Vertices are directly inserted as proxy points,while edges and faces are adaptively sampled based on a unified density parameter.The adjacency relationships among all three primitive types are thereby unified into Delaunay adjacency relationships between proxy points,extending the DP-NNS framework to the geometric primitive level and enabling the construction of a primitive-level query table.During querying,tailored distance computation strategies are applied to each primitive type,with bounding sphere-based pruning employed for faces to avoid unnecessary exact distance computations.Experiments on multiple standard datasets demonstrate that the proposed method achieves a query speedup of 2 to 10 times over FCPW,Embree and Libigl,with particularly pronounced advantages when query points are distant from the model surface,while maintaining competitive approximation accuracy.

Key words: Point-to-mesh distance query, Approximation algorithm, Dynamic programming, Delaunay triangulation, Generalized Voronoi diagram

中图分类号: 

  • TP391.41
[1] REZAABBASIFARD M,GHAHREMANI B,NADERI H.Asurvey on nearest neighbor search methods[J].International Journal of Computer Applications,2014,95:39-52.
[2] AUER S,WESTERMANN R.A semi-lagrangian closest pointmethod for deforming surfaces[J].Computer Graphics Forum,2013,32.
[3] GUÉZIEC A.‘meshsweeper’:Dynamic point-to-polygonal-mesh distance and applications[J].IEEE Transactions on Visualization and Computer Graphics,2001,7:47-61.
[4] WALD I,USHER W,MORRICAL N,et al.Rtx beyond raytracing:exploring the use of hardware ray tracing cores for tet-mesh point location[C] //Proceedings of the Conference on High-Performance Graphics.2019.
[5] BENTLEY J L.Multidimensional binary search trees used for associative searching[J].Communications of the ACM,1975,18:509-517.
[6] ZONG C,XU J C,SONG J T,et al.P2m:A fast solver for querying distance from point to mesh surface[J].ACM Transactions on Graphics,2023,42(4):1-13.
[7] WANG P F,SONG J T,XIN S Q,et al.Efficient nearest neighbor search using dynamic programming[J].IEEE Transactions on Pattern Analysis and Machine Intelligence,2026,48(1):999-1014.
[8] SAWHNEY R.Fcpw:Fastest closest points in the west[EB/OL].https://github.com/rohan-sawhney/fcpw.
[9] WALD I,WOOP S,BENTHIN C,et al.Embree:a kernel framework for efficient cpu ray tracing[J].ACM Transactions on Graphics,2014,33(4):143.
[10] JACOBSON A,PANOZZO D.libigl:A simple C++geometry processing library[EB/OL].https://libigl.github.io/.
[11] FRIEDMAN J H,BENTLEY J L,FINKEL R A.An algorithm for finding best matches in logarithmic expected time[J].ACM Transactions on Mathematical Software,1977,3:209-226.
[12] BLANCO J L,RAI P K.nanoflann:a C++header-only fork of FLANN,a library for nearest neighbor(NN) with kd-trees[EB/OL].https://github.com/jlblancoc/nanoflann.
[13] DROST B,ILIC S.Almost constant-time 3d nearest-neighborlookup using implicit octrees[J].Machine Vision and Applications,2017,29:299-311.
[14] GUTTMAN A.R-trees:a dynamic index structure for spatial searching[C] //ACM SIGMOD Conference.1984.
[15] BECKMANN N,KRIEGEL H P,SCHNEIDER R,et al.Ther*-tree:an efficient and robust access method for points and rectangles [C] //ACM SIGMOD Conference.1990.
[16] JAMES D L,PAI D K.Bd-tree:output-sensitive collision detection for reduced deformable models[J].ACM Transactions on Graphics,2004,23(3):393-398.
[17] WU Z C,MA L,CHEN Y Y,et al.Instant Color Stippling with Incremental Voronoi Sequence[J].Journal of Computer-Aided Design & Computer Graphics,2019,31(9):1502-1508.
[18] DU X Y,YAN D M,YE J T,et al.Quad Mesh Generation via Field-Aligned Centroidal Voronoi Tessellation[J].Journal of Computer-Aided Design & Computer Graphics,2018,30(5):764-771.
[19] CHEN Z G,OUYANG Y S,CAO J.Feature-Preserving Mosaic Image Generation[J].Journal of Computer-Aided Design & Computer Graphics,2014,26(4):520-527.
[20] BOWYER A.Computing dirichlet tessellations*[J].The Computer Journal,1981,24(2):162-166.
[21] WATSON D F.Computing the n-dimensional delaunay tessellation with application to voronoi polytopes*[J].The Computer Journal,1981,24(2):167-172.
[22] HERT S,SEEL M.dD convex hulls and delaunay triangulations[M] //CGAL User and Reference Manual.CGAL Editorial Board,2026.
[23] SI H.Tetgen,a delaunay-based quality tetrahedral mesh generator[J].ACM Transactions on Mathematical Software,2015,41(2):1-36.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!