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


Robust and Optimized Algorithms for the Point‐in‐Polygon Inclusion Test without Pre‐processing
Authors:J. J. Jiménez  F. R. Feito  R. J. Segura
Affiliation:Computer Science Department, University of Jaén, Edificio A3, Campus las Lagunillas s/n. E‐23071, Jaén, Spain
Abstract:In this work we present new point inclusion algorithms for non‐convex polygons. These algorithms do not perform any pre‐processing or any type of decomposition nor features classification, which makes them especially suitable for deformable or moving polygons. The algorithms are more accurate and robust than others in the sense that they consider the inclusion of the point in the vertices and edges of the polygon, and deal with the special cases correctly. In order to perform this inclusion test efficiently, they use the sign of the barycentric coordinates of the test point with regard to the triangles formed by the edges and an origin that depends on the test point. This set of triangles, which is a special simplicial covering of the polygon, is constructed after a transformation of the polygon that simplifies the calculations involved in the inclusion test. Then, an appropriate ordering of the rejection tests allows us to optimize this method. Our algorithms have been tested for robustness and compared with ray‐crossing methods, showing a significant improvement.
Keywords:inclusion test  point‐in‐polygon  rejection test  barycentric coordinates  non‐convex polygon  I.3.5[Computer Graphics]: Computational Geometry and Object Modeling
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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