浏览代码

Adjusted examples to use new boundary_loop implementation

Former-commit-id: 0ae3d817ecef264c6b839b894b5d105ced0e88eb
Stefan Brugger 10 年之前
父节点
当前提交
847a38e97b
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      tutorial/501_HarmonicParam/main.cpp
  2. 1 1
      tutorial/502_LSCMParam/main.cpp
  3. 1 1
      tutorial/503_ARAPParam/main.cpp

+ 1 - 1
tutorial/501_HarmonicParam/main.cpp

@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
 
   // Find the open boundary
   Eigen::VectorXi bnd;
-  igl::boundary_loop(V,F,bnd);
+  igl::boundary_loop(F,bnd);
 
   // Map the boundary to a circle, preserving edge proportions
   Eigen::MatrixXd bnd_uv;

+ 1 - 1
tutorial/502_LSCMParam/main.cpp

@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
 
   // Fix two points on the boundary
   VectorXi bnd,b(2,1);
-  igl::boundary_loop(V,F,bnd);
+  igl::boundary_loop(F,bnd);
   b(0) = bnd(0);
   b(1) = bnd(round(bnd.size()/2));
   MatrixXd bc(2,2);

+ 1 - 1
tutorial/503_ARAPParam/main.cpp

@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
 
   // Compute the initial solution for ARAP (harmonic parametrization)
   Eigen::VectorXi bnd;
-  igl::boundary_loop(V,F,bnd);
+  igl::boundary_loop(F,bnd);
   Eigen::MatrixXd bnd_uv;
   igl::map_vertices_to_circle(V,bnd,bnd_uv);