• CN:11-2187/TH
  • ISSN:0577-6686

›› 2006, Vol. 42 ›› Issue (3): 130-135.

• 论文 • 上一篇    下一篇

点在平面多边形内外的判断方法

夏仁波;刘伟军;王越超   

  1. 中国科学院沈阳自动化研究所;中国科学院研究生院
  • 发布日期:2006-03-15

METHOD FOR DETERMINING WHETHER A CERTAIN POINT IS INSIDE A POLYGON IN PLANE

XIA Renbo;LIU Weijun;WANG Yuechao   

  1. Shenyang Institute of Automation, Chinese Academy of Sciences Graduate School, Chinese Academy of Sciences
  • Published:2006-03-15

摘要: 在诸多研究领域中,判断点是否在多边形内是一个非常基本的问题。首先分析了解决这一问题的传统方法,然后提出一种边界代数跟踪法对多边形进行栅格化,在此基础上设计出Flooding操作和轮廓腐蚀算法进行多边形内外点的判断。试验结果表明该方法具有健壮性好、适用于任意复杂多边形而无需对奇异情况进行单独处理等优点。

关键词: Flooding操作, 多边形, 轮廓腐蚀, 内外点判断, 栅格化

Abstract: A very natural problem in many research fields is to determine whether a certain point is located inside a given arbitrary polygon. First, some well-known algorithms are analyzed to answer this question. Then, based on the rasterization of polygon by boundary algebra tracing technique, designing the Flooding operation which is similar to the ideas of seed fill, and combining the contour erosion algorithm, a new algorithm is proposed to decide whether a point is in a simple polygon, a self-intersected polygon and a ring. Experimental results demonstrate that the new algorithm is robust and is valid for any kind polygon without need of peculiar cases processing.

Key words: Flooding operation, Contour erosion, Point in-out test, Polygon, Rasterization

中图分类号: