% brew install gcc
or you can update to an up-to-date version of gcc by typing:
% brew upgrade gcc
--viewable
flag and use an application like MeshLab to view the results. (Note that you will need to click on the "Wireframe" icon to see your triangulation. Also, if you try loading the input polygon into MeshLab you will see something of a mess because MeshLab does not compute a nice trangulation.) Alternatively, you can try to compile the PLY viewing code here (which requires that GLUT be installed). You can invoke the viewer by calling:
% PLYViewer triangulation.ply --noLight --boundary --edges
which will show both the boundary of the polygon and the edges of the triangles.
/////////////////////////////
// You need to implement this
/////////////////////////////
After you download the files, the first thing to do is compile the program.
Assignments.sln
to open the workspace in Microsoft Visual Studios.
Triangulation
executable by clicking on "Build" and then selecting "Build Solution".
Triangulation.exe
is compiled in Release mode for the 64-bit architecture and will be placed in the directory Bin/x64/.
make Triangulation
to compile the Triangulation
executable.
Triangulation
is compiled in Release mode and will be placed in the directory Bin/Linux/.