| |
| |
| |
| |
| |
| |
| |
| #include "write_triangle_mesh.h" |
| #include "../write_triangle_mesh.h" |
| #include "../pathinfo.h" |
| #include "writeDAE.h" |
|
|
| template <typename DerivedV, typename DerivedF> |
| IGL_INLINE bool igl::xml::write_triangle_mesh( |
| const std::string str, |
| const Eigen::PlainObjectBase<DerivedV>& V, |
| const Eigen::PlainObjectBase<DerivedF>& F, |
| const FileEncoding fe) |
| { |
| using namespace std; |
| |
| string d,b,e,f; |
| pathinfo(str,d,b,e,f); |
| |
| std::transform(e.begin(), e.end(), e.begin(), ::tolower); |
| if(e == "dae") |
| { |
| return writeDAE(str,V,F); |
| }else |
| { |
| return igl::write_triangle_mesh(str,V,F,fe); |
| } |
| } |
|
|
| #ifdef IGL_STATIC_LIBRARY |
| |
| |
| template bool igl::xml::write_triangle_mesh<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, igl::FileEncoding); |
| #endif |
|
|