@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user