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