- started global cmakelist to compile all examples - cleanup in the cmake building system for the tutorials
17 lines
311 B
C++
Executable File
17 lines
311 B
C++
Executable File
#include <igl/readOFF.h>
|
|
#include <igl/viewer/Viewer.h>
|
|
|
|
Eigen::MatrixXd V;
|
|
Eigen::MatrixXi F;
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
// Load a mesh in OFF format
|
|
igl::readOFF("../shared/bunny.off", V, F);
|
|
|
|
// Plot the mesh
|
|
igl::Viewer viewer;
|
|
viewer.set_mesh(V, F);
|
|
viewer.launch();
|
|
}
|