Files
igl/tutorial/103_DrawMesh/main.cpp
T
2014-06-20 19:06:02 +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();
}