- cd into the project folder
- Execute the following commands from the command line:
$ g++ -std=c++11 bezier1.cpp BezierCurve.cpp Mesh.cpp Vertex3f.cpp -lGL -lGLU -lglut
- Run the a.out file
- To add control points on the window, left click on the desired location. To change the position of an existing control point, click on it and drag with the right mouse button. To delete a control point, click on it with the middle mouse button.
- Close the window once the curved has been created with the desired shape. The application will automatically create a surface of rotation and save the corresponding mesh in "mesh.off".
- To view the mesh, run any mesh viewer with the "mesh.off" file. To run the file with Geomview, execute the following command:
$ geomview mesh.off