Graphics-OpenGL

Tree Drawing Algorithm

This is the implementation of the paper "Tidy Drawing of Tree" by Charles Wetherrell and Alfred Shannon. The paper has suggested three different algorithms for drawing tree data structure taking into consideration the aesthetics and contraints involved while drawing this tree. The three algorithms discussed are implemented in C++ using OpenGL namely Algo1 (binary tree drawer), Algo2 (naive tree drawer) and Algo3 (tidy tree drawer).

Code

Open your terminal and go to the file location and type the following command:

g++ Algo3.cpp -o algo3 -lm -lglut -lGL -lGLU

The executable file is already present in this repository.

``