// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2013 Alec Jacobson // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. #include "write.h" #include "writeOBJ.h" #include "writeOFF.h" #include template IGL_INLINE bool igl::write( const std::string str, const Eigen::PlainObjectBase& V, const Eigen::PlainObjectBase& F) { using namespace std; const char* p; for (p = str.c_str(); *p != '\0'; p++) ; while (*p != '.') p--; if (!strcmp(p, ".obj") || !strcmp(p, ".OBJ")) return igl::writeOBJ(str,V,F); if (!strcmp(p, ".off") || !strcmp(p, ".OFF")) return igl::writeOFF(str,V,F); cerr<<"^write Unsupported extension: "<, Eigen::Matrix >(std::basic_string, std::allocator >, Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase > const&); #endif