--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.
ConvexHull3D
and Delaunay2D
executables by clicking on "Build" and then selecting "Build Solution".
ConvexHull3D.exe
and Delaunay2D.exe
are compiled in Release mode for the 64-bit architecture and will be placed in the directory Bin/x64/.
make ConvexHull3D
and make Delaunay2D
to compile the ConvexHull3D
and Delaunay2D
executables.
ConvexHull3D
and Delaunay2D
are compiled in Release mode and will be placed in the directory Bin/Linux/.
ConvexHull3D
runs on the command line. It uses the number of samples specified on the command line to create a random set of points in 3D. It then computes the convex hull and outputs the results to the specified file.
Delaunay2D
runs on the command line. It uses the number of samples specified on the command line to create a random set of points in 2D. It then computes the Delaunay Triangulation and outputs the results to the specified file.