Problem: Polygonization of a point-set S with n points in
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.
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>
[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.
*Equal contribution.