4.5 Article

Optimal Reliable Point-in-Polygon Test and Differential Coding Boolean Operations on Polygons

Journal

SYMMETRY-BASEL
Volume 10, Issue 10, Pages -

Publisher

MDPI
DOI: 10.3390/sym10100477

Keywords

3D printing; point-in-polygon; boolean operations; code; probability; parallel

Funding

  1. open funding project of State Key Laboratory of Virtual Reality Technology and Systems, Beihang University [BUAA-VR-17KF-07]
  2. Beijing Science and Technology Project [Z151100001615041]
  3. Basic Research Project of the Ministry of Science and Technology [2015FY111200]

Ask authors/readers for more resources

This paper provides a full theoretical and experimental analysis of a serial algorithm for the point-in-polygon test, which requires less running time than previous algorithms and can handle all degenerate cases. The serial algorithm can quickly determine whether a point is inside or outside a polygon and accurately determine the contours of input polygon. It describes all degenerate cases and simultaneously provides a corresponding solution to each degenerate case to ensure the stability and reliability. This also creates the prerequisites and basis for our novel boolean operations algorithm that inherits all the benefits of the serial algorithm. Using geometric probability and straight-line equation F(P) - (y(i) - y(i+1)) (x(p) - x(i)) - (y(i) y(p)) (x(i+1) - x(i)), it optimizes our two algorithms that avoid the division operation and do not need to compute any intersection points. Our algorithms are applicable to any polygon that may be self-intersecting or with holes nested to any level of depth. They do not have to sort the vertices clockwise or counterclockwise beforehand. Consequently, they process all edges one by one in any order for input polygons. This allows a parallel implementation of each algorithm to be made very easily. We also prove several theorems guaranteeing the correctness of algorithms. To speed up the operations, we assign each vector a number code and derive two iterative formulas using differential calculus. However, the experimental results as well as the theoretical proof show that our serial algorithm for the point-in-polygon test is optimal and the time complexities of all algorithms are linear. Our methods can be extended to three-dimensional space, in particular, they can be applied to 3D printing to improve its performance.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.5
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available