- cleanup in the tutorial ordering

- started global cmakelist to compile all examples
- cleanup in the cmake building system for the tutorials
This commit is contained in:
Daniele Panozzo
2014-06-25 15:11:29 +02:00
parent 4a3d53e53a
commit 364c8645e0
17 changed files with 61 additions and 51 deletions
+16
View File
@@ -0,0 +1,16 @@
#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();
}