Proceedings of the 12th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Application 2017
DOI: 10.5220/0006040801750178
|View full text |Cite
|
Sign up to set email alerts
|

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

Abstract: 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 … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
8
0

Year Published

2017
2017
2024
2024

Publication Types

Select...
5
2
1

Relationship

0
8

Authors

Journals

citations
Cited by 21 publications
(8 citation statements)
references
References 3 publications
0
8
0
Order By: Relevance
“…Note that we use a method proposed in [12] to judge whether a point is inside a polygon, and this method is also known as the crossing number algorithm or the evenodd rule algorithm [5]. The comparison between previous method and our algorithm is shown in Figure 3, our method shows satisfactory performance for computing polygonal area in practice.…”
Section: Shared Monte-carlo Methodsmentioning
confidence: 84%
“…Note that we use a method proposed in [12] to judge whether a point is inside a polygon, and this method is also known as the crossing number algorithm or the evenodd rule algorithm [5]. The comparison between previous method and our algorithm is shown in Figure 3, our method shows satisfactory performance for computing polygonal area in practice.…”
Section: Shared Monte-carlo Methodsmentioning
confidence: 84%
“…The winding number version, however, provides the correct answer also for non-simple polygons or particular cases, whereas the ray casting algorithm, as it has been presented, fails. Nevertheless, a more recent review of the ray casting [96] method has also smoothed out this difference, making the two versions practically equivalent.…”
Section: Winding Number Version -mentioning
confidence: 99%
“…In many studies, this type of algorithm is called the ray-crossing [2], crossings-count [4], odd-even [3], odd parity [3], or even-odd [2,10] algorithm because the structures and principles of the different algorithms are all slightly different. However, virtually all of these algorithms evolved from the ray-intersection algorithm, which works by shooting a ray − → PQ in any direction (see Figure 5; in general, this is done parallel to the x-axis) from the test point P to infinity and counts the number of intersections between the ray − → PQ and all edges of input polygon.…”
Section: Ray-intersection Algorithmmentioning
confidence: 99%