Forráskód Böngészése

Removed overzealous check in boundary_conditions when there's only a single point handle.

Former-commit-id: ed2c6e1efc76b4bad18342a574465de3ca165d70
yotam 11 éve
szülő
commit
5c04a7b9d2
1 módosított fájl, 7 hozzáadás és 0 törlés
  1. 7 0
      include/igl/boundary_conditions.cpp

+ 7 - 0
include/igl/boundary_conditions.cpp

@@ -157,6 +157,13 @@ IGL_INLINE bool igl::boundary_conditions(
     bc.row(i).array() /= sum;
   }
 
+  // If there's only a single boundary condition, the following tests
+  // are overzealous.
+  if(bc.rows() == 1)
+  {
+    return true;
+  }
+
   // Check that every Weight function has at least one boundary value of 1 and
   // one value of 0
   for(i = 0;i<bc.cols();i++)