--viewable
flag and use an application like MeshLab to view the results. (If you did things right, your result should be a convex polygon so MeshLab should not have trouble visualizing it.) 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 convexhull.ply --noLight --boundary
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.
ConvexHull2D
executable by clicking on "Build" and then selecting "Build Solution".
ConvexHull2D.exe
is compiled in Release mode for the 64-bit architecture and will be placed in the directory Bin/x64/.
make ConvexHull2D
to compile the ConvexHull2D
executable.
ConvexHull2D
is compiled in Release mode and will be placed in the directory Bin/Linux/.