Explorar o código

output faces

Former-commit-id: e570284fdcf337c3155067b021debdc21a0ed83b
Alec Jacobson %!s(int64=9) %!d(string=hai) anos
pai
achega
8d85fd054f
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      include/igl/copyleft/tetgen/tetgenio_to_tetmesh.cpp

+ 8 - 1
include/igl/copyleft/tetgen/tetgenio_to_tetmesh.cpp

@@ -104,7 +104,8 @@ IGL_INLINE bool igl::copyleft::tetgen::tetgenio_to_tetmesh(
   using namespace std;
   vector<vector<REAL> > vV;
   vector<vector<int> > vT;
-  bool success = tetgenio_to_tetmesh(out,vV,vT);
+  vector<vector<int> > vF;
+  bool success = tetgenio_to_tetmesh(out,vV,vT,vF);
   if(!success)
   {
     return false;
@@ -121,6 +122,12 @@ IGL_INLINE bool igl::copyleft::tetgen::tetgenio_to_tetmesh(
     // igl::list_to_matrix(vT,T) already printed error message to std err
     return false;
   }
+  bool F_rect = list_to_matrix(vF,F);
+  if(!F_rect)
+  {
+    return false;
+  }
+
   return true;
 }