Browse Source

bug fix: xml::write_triangle_mesh now uses fe, too

Alec Jacobson 5 years ago
parent
commit
e706cc5b8b

+ 2 - 2
include/igl/xml/write_triangle_mesh.cpp

@@ -15,7 +15,7 @@ IGL_INLINE bool igl::xml::write_triangle_mesh(
   const std::string str,
   const std::string str,
   const Eigen::PlainObjectBase<DerivedV>& V,
   const Eigen::PlainObjectBase<DerivedV>& V,
   const Eigen::PlainObjectBase<DerivedF>& F,
   const Eigen::PlainObjectBase<DerivedF>& F,
-  const bool ascii)
+  const FileEncoding fe)
 {
 {
   using namespace std;
   using namespace std;
   // dirname, basename, extension and filename
   // dirname, basename, extension and filename
@@ -28,6 +28,6 @@ IGL_INLINE bool igl::xml::write_triangle_mesh(
     return writeDAE(str,V,F);
     return writeDAE(str,V,F);
   }else
   }else
   {
   {
-    return igl::write_triangle_mesh(str,V,F,ascii);
+    return igl::write_triangle_mesh(str,V,F,fe);
   }
   }
 }
 }

+ 2 - 1
include/igl/xml/write_triangle_mesh.h

@@ -8,6 +8,7 @@
 #ifndef IGL_XML_WRITE_TRIANGLE_MESH_H
 #ifndef IGL_XML_WRITE_TRIANGLE_MESH_H
 #define IGL_XML_WRITE_TRIANGLE_MESH_H
 #define IGL_XML_WRITE_TRIANGLE_MESH_H
 #include "../igl_inline.h"
 #include "../igl_inline.h"
+#include "../FileEncoding.h"
 
 
 #include <Eigen/Core>
 #include <Eigen/Core>
 #include <string>
 #include <string>
@@ -33,7 +34,7 @@ namespace igl
       const std::string str,
       const std::string str,
       const Eigen::PlainObjectBase<DerivedV>& V,
       const Eigen::PlainObjectBase<DerivedV>& V,
       const Eigen::PlainObjectBase<DerivedF>& F,
       const Eigen::PlainObjectBase<DerivedF>& F,
-      const bool ascii = true);
+      const FileEncoding fe = FileEncoding::Ascii);
   }
   }
 }
 }