Ver código fonte

Adjusted examples to use new boundary_loop implementation

Former-commit-id: 0ae3d817ecef264c6b839b894b5d105ced0e88eb
Stefan Brugger 10 anos atrás
pai
commit
847a38e97b

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

@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
 
 
   // Find the open boundary
   // Find the open boundary
   Eigen::VectorXi bnd;
   Eigen::VectorXi bnd;
-  igl::boundary_loop(V,F,bnd);
+  igl::boundary_loop(F,bnd);
 
 
   // Map the boundary to a circle, preserving edge proportions
   // Map the boundary to a circle, preserving edge proportions
   Eigen::MatrixXd bnd_uv;
   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
   // Fix two points on the boundary
   VectorXi bnd,b(2,1);
   VectorXi bnd,b(2,1);
-  igl::boundary_loop(V,F,bnd);
+  igl::boundary_loop(F,bnd);
   b(0) = bnd(0);
   b(0) = bnd(0);
   b(1) = bnd(round(bnd.size()/2));
   b(1) = bnd(round(bnd.size()/2));
   MatrixXd bc(2,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)
   // Compute the initial solution for ARAP (harmonic parametrization)
   Eigen::VectorXi bnd;
   Eigen::VectorXi bnd;
-  igl::boundary_loop(V,F,bnd);
+  igl::boundary_loop(F,bnd);
   Eigen::MatrixXd bnd_uv;
   Eigen::MatrixXd bnd_uv;
   igl::map_vertices_to_circle(V,bnd,bnd_uv);
   igl::map_vertices_to_circle(V,bnd,bnd_uv);