Skip to content

rondojim/Point-Set-Polygonization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Point Set Polygonization

Problem: Polygonization of a point-set S with n points in $\mathbf{R}^2$, and calculation of the area of the polygon (+ Pick's theorem).

The implemented algorithms are based on the following papers:

  • Incremental algorithm from [1]
  • Based on Convex Hull algorithm from [2]
  • Onion algorithm from [3]

A detailed report of this project it is provided in the Report.pdf file.

Usage

Dependency: Make sure you have CGAL installed, or download it from here.

Go to build/ directory and run:

$ cmake .. && make
$ ./to_polygon -i <input file> -o <output file> 
  -algorithm <incremental/convex_hull/onion> 
  -initialization <1a/1b/2a/2b | only in incremental> 
  -edge_selection <1 to 3 | except onion> 
  -onion_initialization <1 to 5 | only in onion>

References

[1]: Taranilla, M.T., Gagliardi, E.O., & Peñalver, G.H. (2011). Approaching minimum area polygonization.
[2]: Zhang H, Zhao Q, Li Y (2020) Generation of simple polygons from ordered points using an iterative insertion algorithm. PLOS ONE 15(3): e0230342. https://doi.org/10.1371/journal.pone.0230342
[3]: Manuel Abellanas, JesĂșs GarcĂ­a, Gregorio HernĂĄndez-Peñalver, FerrĂĄn Hurtado, Oriol Serra, Jorge Urrutia, Onion polygonizations, Information Processing Letters, Volume 57, Issue 3, 1996, Pages 165-173, ISSN 0020-0190, https://doi.org/10.1016/0020-0190(95)00193-X.

Authors

*Equal contribution.

About

📐 Polygonization Algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published