To Run the code you need to Download libraries of OpenGL
sudo apt-get install freeglut3-dev apt-cache search glut
and you can compile main.c file by
gcc -o main main.c -lGL -lGLU -lglut -lm
Compile and run the main.c file and run the menu driven program... 8th option of which is display the 3D tree... Try it out...