all tutorial examples compile with static lib

Former-commit-id: b418eb9451
This commit is contained in:
Alec Jacobson
2014-07-01 21:04:39 -04:00
parent 7ce2bef4a0
commit 5a5ec9adf9
18 changed files with 58 additions and 18 deletions
+3 -4
View File
@@ -1,4 +1,3 @@
#define IGL_HEADER_ONLY
#include <igl/readOFF.h>
#include <igl/writeOBJ.h>
#include <iostream>
@@ -11,9 +10,9 @@ 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;
// Print the vertices and faces matrices
std::cout << "Vertices: " << std::endl << V << std::endl;
std::cout << "Faces: " << std::endl << F << std::endl;
// Save the mesh in OBJ format
igl::writeOBJ("cube.obj",V,F);