瀏覽代碼

output faces

Former-commit-id: e570284fdcf337c3155067b021debdc21a0ed83b
Alec Jacobson 9 年之前
父節點
當前提交
8d85fd054f
共有 1 個文件被更改,包括 8 次插入1 次删除
  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;
 }