pith. sign in

arxiv: 1207.3502 · v2 · pith:U5I7DRWEnew · submitted 2012-07-15 · 💻 cs.CG

A Simple and Correct Even-Odd Algorithm for the Point-in-Polygon Problem for Complex Polygons

classification 💻 cs.CG
keywords polygonsalgorithmcomplexcomputereven-oddproblemsimpleapplications
0
0 comments X
read the original abstract

Determining if a point is in a polygon or not is used by a lot of applications in computer graphics, computer games and geoinformatics. Implementing this check is error-prone since there are many special cases to be considered. This holds true in particular for complex polygons whose edges intersect each other creating holes. In this paper we present a simple even-odd algorithm to solve this problem for complex polygons in linear time and prove its correctness for all possible points and polygons. We furthermore provide examples and implementation notes for this algorithm.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.