tutorials index starts from 1

Former-commit-id: 743a694291
This commit is contained in:
Daniele Panozzo
2014-06-18 10:17:52 +02:00
parent 5525ef99f4
commit 073be51f91
15 changed files with 47 additions and 47 deletions
+20
View File
@@ -0,0 +1,20 @@
#define IGL_HEADER_ONLY
#include <igl/readOFF.h>
#include <igl/writeOBJ.h>
#include <iostream>
Eigen::MatrixXd V;
Eigen::MatrixXi F;
int main(int argc, char *argv[])
{
// Load a mesh in OFF format
igl::readOFF("../shared/cube.off", V, F);
// Plot the vertices and faces matrices
std::cerr << "Vertices: " << std::endl << V << std::endl;
std::cerr << "Faces: " << std::endl << F << std::endl;
// Save the mesh in OBJ format
igl::writeOBJ("cube.obj",V,F);
}