Browse Source

Fixed auto parameters in lambda helper function

Vladimir S. FONOV 3 years ago
parent
commit
862f54fee4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorial/724_ShowIntersections/main.cpp

+ 1 - 1
tutorial/724_ShowIntersections/main.cpp

@@ -26,7 +26,7 @@ void update_visualization(igl::opengl::glfw::Viewer & viewer)
   V2_<< V2.col(0), V2.col(1), V2.col(2).array()+slice_z;
 
   igl::fast_find_mesh_intersect(tree, V1,F1, V2_,F2, I,edges);
-  Eigen::MatrixXi edges_link=Eigen::MatrixXi::NullaryExpr(edges.rows()/2,2, [](auto i,auto j) { return i*2+j;});
+  Eigen::MatrixXi edges_link=Eigen::MatrixXi::NullaryExpr(edges.rows()/2,2, [](int i,int j) { return i*2+j;});
  
   // Plot the edges of the intersects
   viewer.data().set_edges ( edges, edges_link, Eigen::RowVector3d(1,0,0));