compile tutorial with namespace

Former-commit-id: 6643b9a67c
This commit is contained in:
Alec Jacobson
2015-06-17 11:25:29 -04:00
parent 76c8fb8871
commit 0640f41c49
49 changed files with 326 additions and 288 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
#include <igl/circulation.h>
#include <igl/collapse_edge.h>
#include <igl/edge_flaps.h>
#include <igl/read_triangle_mesh.h>
#include <igl/circulation.h>
#include <igl/Viewer/viewer.h>
#include <Eigen/Core>
#include <iostream>
@@ -25,7 +25,7 @@ int main(int argc, char * argv[])
MatrixXi F,OF;
read_triangle_mesh(filename,OV,OF);
igl::Viewer viewer;
igl::viewer::Viewer viewer;
// Prepare array-based edge data structures and priority queue
VectorXi EMAP;
@@ -79,7 +79,7 @@ int main(int argc, char * argv[])
viewer.data.set_face_based(true);
};
const auto &pre_draw = [&](igl::Viewer & viewer)->bool
const auto &pre_draw = [&](igl::viewer::Viewer & viewer)->bool
{
// If animating then collapse 10% of edges
if(viewer.core.is_animating && !Q.empty())
@@ -108,7 +108,7 @@ int main(int argc, char * argv[])
};
const auto &key_down =
[&](igl::Viewer &viewer,unsigned char key,int mod)->bool
[&](igl::viewer::Viewer &viewer,unsigned char key,int mod)->bool
{
switch(key)
{