Explorar o código

fixed major bug in boundary loop, all param tutorials work again

Former-commit-id: de9e3896a54b465a32f9e1a2f28e2523389732b8
Daniele Panozzo %!s(int64=10) %!d(string=hai) anos
pai
achega
83ff7f41de
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      include/igl/boundary_loop.cpp
  2. 2 2
      tutorial/501_HarmonicParam/main.cpp

+ 1 - 1
include/igl/boundary_loop.cpp

@@ -66,7 +66,7 @@ IGL_INLINE void igl::boundary_loop(
           int vPrev = F(fid,(vLoc + F.cols()-1) % F.cols());
           int vNext = F(fid,(vLoc + 1) % F.cols());
 
-          bool newBndEdge = false;
+          newBndEdge = false;
           if (unvisited[vPrev] && TT(fid,(vLoc+2) % F.cols()) < 0)
           {
             next = vPrev;

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

@@ -31,7 +31,7 @@ bool key_down(igl::Viewer& viewer, unsigned char key, int modifier)
 int main(int argc, char *argv[])
 {
   // Load a mesh in OFF format
-  igl::readOFF("D:/libraries/libigl/tutorial/shared/camelhead.off", V, F);
+  igl::readOFF("../shared/camelhead.off", V, F);
 
   // Find the open boundary
   Eigen::VectorXi bnd;
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
 
   // Harmonic parametrization for the internal vertices
   igl::harmonic(V,F,bnd,bnd_uv,1,V_uv);
-
+  
   // Scale UV to make the texture more clear
   V_uv *= 5;