瀏覽代碼

Merge pull request #74 from fmardini/my-master

write object bug: need newline between end of v and start of f

Former-commit-id: 049d1071f884f0ea26181a05e477d4e30181355d
Alec Jacobson 10 年之前
父節點
當前提交
5e0e174431
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/igl/writeOBJ.cpp

+ 2 - 2
include/igl/writeOBJ.cpp

@@ -106,8 +106,8 @@ IGL_INLINE bool igl::writeOBJ(
     return false;
   }
   s<<
-    V.format(IOFormat(FullPrecision,DontAlignCols," ","\n","v ","","",""))<<
-    (F.array()+1).format(IOFormat(FullPrecision,DontAlignCols," ","\n","f ","","",""));
+    V.format(IOFormat(FullPrecision,DontAlignCols," ","\n","v ","","","\n"))<<
+    (F.array()+1).format(IOFormat(FullPrecision,DontAlignCols," ","\n","f ","","","\n"));
   return true;
 }