Browse Source

Removed minor assigment issue of first element inside (1,1) matrix.

Martin Thümmel 4 years ago
parent
commit
a05012bfac
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/igl/flood_fill.cpp

+ 2 - 2
include/igl/flood_fill.cpp

@@ -57,7 +57,7 @@ IGL_INLINE void igl::flood_fill(
     int signed_yi = -1;
     if(zi != 0)
     {
-      s = (S(0+res(0)*(0 + res(1)*(zi-1))))(0, 0);
+      s = S(0+res(0)*(0 + res(1)*(zi-1)));
     }
     for(int yi = 0;yi<res(1);yi++)
     {
@@ -65,7 +65,7 @@ IGL_INLINE void igl::flood_fill(
       int signed_xi = -1;
       if(yi != 0)
       {
-        s = (S(0+res(0)*(yi-1 + res(1)*zi)))(0, 0);
+        s = S(0+res(0)*(yi-1 + res(1)*zi));
       }
       for(int xi = 0;xi<res(0);xi++)
       {