A C++ visual polygon triangulation algorithm implementation. Team project for the Computational Geometry course.
You will need to download or build your own version of the SFML (Simple and Fast Multimedia Library).
Simply place the SFML build under SFML/ in the same directory as src/ and run the build.
- Mac:
clang++ -std=c++11 src/main.cpp src/Renderer.cpp src/Logic.cpp -o application -DSFML_STATIC -I SFML/include -L SFML/lib -lsfml-graphics -lsfml-window -lsfml-system
- Linux:
g++ ...
- Left click to add a new point to the polygon.
- Right click to move the sampling point. The sampling point highlights the triangle that it is part of whenever inside the polygon.
- Press "C" to clear the canvas.