改进的点到三角网距离快捷算法.pdfVIP

  • 13
  • 0
  • 约2.13万字
  • 约 8页
  • 2017-11-27 发布于福建
  • 举报
第 26卷第 3期 计算机辅助设计与图形学学报 Vo1.26No.3 2014年 3月 JournalofComputer—AidedDesign ComputerGraphics M ar.2O14 改进的点到三角网距离快捷算法 吴耕宇,潘 懋,郭艳军,李兆亮 (北京大学地球与空间科学学院造山带与地壳演化教育部重点实验室 北京 100871) (WU gengyu@sina.com) — 摘 要 :针对现有基于体素结构的点到三角网距离算法 中存在的可能因未找到最近三角形所在体素而导致计算结 果错误,以及较远点距离计算速度慢的问题,对其进行改进,提出准确快捷的基于体素结构的距离算法.首先将每个 三角形进行点采样并求出采样点所在体素,得到三角网的体素化结果;对于每个待计算点,通过邻接体素与点距离 变化规律寻找三角网包围盒内与该点距离小于某半径值的所有体素,逐渐扩大该半径值直至找到非空体素为止 ;以 找到的体素中最近三角形到该点的距离作为初始距离,再令该半径值等于初始距离与一个适当微小量之和 ,即可找 到与该点最近 的三角形,得到准确 的距离.实例测试结果表明,文 中算法在一般情况下运算速度较快,与现有算法相 比,较远点到三角网距离的计算时间明显缩短. 关键词 :三角网;距离算法 ;体素结构 ;体素化 中图法分类号:TP391 AnImprovedAlgorithm forFastComputingDistanceBetweenPointsandTriangle M eshes WuGengyu,PanMao,GuoYanjun,andLiZhaoliang (TheKeyLaboratoryofOrogenicBeltsandCrustalEvolution,Ministryof Education,Schoolo/EarthandS加 feSciemes,Peking University.Beijing 100871) Abstract:Tosolvetheproblemsoftheexistingpoint—to—triangle—meshdistancecomputationalgorithm whichrunsslow orgetsawronganswerinsomecases,animprovedalgorithm basedonvoxelstructure wasproposed. This algorithm first computes the voxelized mesh by sampling alltriangles and computingthevoxelsofsamplepointsofeachtriangle;Then thealgorithm searchesallvoxelswhich areaway from the given pointlessthan a given valuewithin thebounding box ofthemesh by consideringthedistancevariationofadjoinvoxels,expandsthegivenvaluegraduallyuntilatleastone non—emptyvoxelisfound,getstheoriginaldistancebycomputingthedistancebetweenthegivenpoint andthenearesttrianglewithin thetriangleswhich arefound,andexpandsthegiven valueto the originaldistanceadding an appropriate smallnumber. Thenearesttrianglewillbe found and the accurate distance willbe calculated. Experimentalresults show that this algorithm has a good performance.Thetimeconsumptio

文档评论(0)

1亿VIP精品文档

相关文档