首页 | 本学科首页   官方微博 | 高级检索  
     

基于拓扑映射的点集在凸多边形内外判断算法
引用本文:温星,陆国栋,李基拓.基于拓扑映射的点集在凸多边形内外判断算法[J].中国图象图形学报,2003,8(4):468-471.
作者姓名:温星  陆国栋  李基拓
作者单位:温星(浙江大学CAD8CG国家重点实验室,杭州,310027)       陆国栋(浙江大学CAD8CG国家重点实验室,杭州,310027)       李基拓(浙江大学CAD8CG国家重点实验室,杭州,310027)
基金项目:创新群体科学研究基金 ( 60 0 2 12 0 1),国家自然科学基金 ( 5 0 10 60 14 )
摘    要:通过拓扑映射 ,点在凸多边形内外的判别可以转化为映射点在射影直线上的位置关系问题 .首先通过设置中心点 ,获取凸多边形各顶点的拓扑映射点 ,对于每个检测点 ,根据其映射点与顶点拓扑映射点的相对位置关系 ,即可确定检测点位于多边形哪条边的范围内 ;然后将检测点与该边进行包围盒测试 ,对于点在边包围盒外的情况 ,只需根据比较判别即可得到结果 ,对于点在边包围盒边界上或内部的情况 ,则需通过叉积运算进行判别 .该方法几何意义清晰 ,实验结果表明 ,该算法运行可靠 ,对于单个点或多点组成的点集均有较高的检测速度 .

关 键 词:计算机图形学(520·6030)    点集  多边形  拓扑映射  映射点  射影直线
文章编号:1006-8961(2003)04-0468-04
修稿时间:2002年4月11日

An Algorithm for Determining the Points of Set Inclusion of Convex Polygon Based on Topological Mapping
WEN Xing,LU Guo dong and LI Ji tuo.An Algorithm for Determining the Points of Set Inclusion of Convex Polygon Based on Topological Mapping[J].Journal of Image and Graphics,2003,8(4):468-471.
Authors:WEN Xing  LU Guo dong and LI Ji tuo
Abstract:Via topological mapping, the inclusion test of whether a set of points is in a polygon or not can be converted to comparing the projected points' position on the projection line. At first, the center point for topological mapping must be figured out, then the method maps vertices of the polygon onto the projection line. To each point of the set, according to the position of its mapping point and the mapping points of the vertices, it is confirmed that the point is in the area of two lines from the center point to the two vertices of one of the polygon's edges. And then, according to the two cases, whether the point is in the edge's box or not, we can draw a conclusion. If the point is out of the edge's box, the calculation of comparing its position with the edge's box's is only needed,and if the point is in or on the boundary of the edge's box, the calculation of cross product must be added. To the points of set, througth pre calculation of the polygon's vertices this algorithm can greatly reduce calculation of each point. Experiments show that this algorithm is rapid, robust and can be implemented easily.
Keywords:Computer graphics  Point  Set of points  Polygon  Topological mapping  Mapping point  Projection line
本文献已被 维普 等数据库收录!
点击此处可从《中国图象图形学报》浏览原始摘要信息
点击此处可从《中国图象图形学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号