Skip to content

heracle/GC-polygon-triangulation-visual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Polygon triangulation visual

A C++ visual polygon triangulation algorithm implementation. Team project for the Computational Geometry course.

Getting Started

Prerequisites

You will need to download or build your own version of the SFML (Simple and Fast Multimedia Library).

Installing

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++ ...

Usage

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •