In this assignment we have implemented the algorithm described in the following paper (decomposition + merging):
The decomposition is stored in a Doubly Connected Edge List (DCEL) Data Structure.
DCEL consists of three main sub-data-structures, namely Vertex, Edge and Face.
-
Install CMake.
-
Run
cmake . -B build
to generate the makefile. -
Run
make -C build
to build. -
./build/polygon_decomp
to run.Input format: Number of vertices of polygon
$N$ in first line and coordinates of points of polygon in subsequent$N$ lines (in clockwise order only)
You can use cmake --build build --target doxygen
to build the docs, which will be available at build/html/index.html