Explorar el Código

Merge pull request #314 from skitaoka/skitaoka-patch-1

Fix `igl::copyleft::tetgen::tetrahedralize` to return `0` when it succeeded

Former-commit-id: c2908975dd09b540681c30462962c464c62c2f2a
Alec Jacobson hace 9 años
padre
commit
f3e1b8f193
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      include/igl/copyleft/tetgen/tetrahedralize.cpp

+ 3 - 3
include/igl/copyleft/tetgen/tetrahedralize.cpp

@@ -84,17 +84,17 @@ IGL_INLINE int igl::copyleft::tetgen::tetrahedralize(
     bool TV_rect = list_to_matrix(vTV,TV);
     if(!TV_rect)
     {
-      return false;
+      return 3;
     }
     bool TT_rect = list_to_matrix(vTT,TT);
     if(!TT_rect)
     {
-      return false;
+      return 3;
     }
     bool TF_rect = list_to_matrix(vTF,TF);
     if(!TF_rect)
     {
-      return false;
+      return 3;
     }
   }
   return e;