Browse Source

assign a error code

Former-commit-id: aea8ec120717447ac0783ec322d6794cce7c39a8
Shinya Kitaoka 9 years ago
parent
commit
1066a66a81
1 changed files with 3 additions and 3 deletions
  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);
     bool TV_rect = list_to_matrix(vTV,TV);
     if(!TV_rect)
     if(!TV_rect)
     {
     {
-      return false;
+      return 3;
     }
     }
     bool TT_rect = list_to_matrix(vTT,TT);
     bool TT_rect = list_to_matrix(vTT,TT);
     if(!TT_rect)
     if(!TT_rect)
     {
     {
-      return false;
+      return 3;
     }
     }
     bool TF_rect = list_to_matrix(vTF,TF);
     bool TF_rect = list_to_matrix(vTF,TF);
     if(!TF_rect)
     if(!TF_rect)
     {
     {
-      return false;
+      return 3;
     }
     }
   }
   }
   return e;
   return e;