Files
igl/tutorial/102_DrawMesh/main.cpp
T
Daniele Panozzo 364c8645e0 - cleanup in the tutorial ordering
- started global cmakelist to compile all examples
- cleanup in the cmake building system for the tutorials
2014-06-25 15:11:29 +02:00

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();
}