// // IGL Lib - Simple C++ mesh library // // Copyright 2011, Daniele Panozzo. All rights reserved. // History: // return type changed from void to bool Alec 18 Sept 2011 #ifndef IGL_READ_H #define IGL_READ_H #include "igl_inline.h" #include #include namespace igl { // read mesh from an ascii file with automatic detection of file format. supported: obj, off) // Inputs: // str path to .obj/.off file // Outputs: // V eigen double matrix #V by 3 // F eigen int matrix #F by 3 template IGL_INLINE bool read( const std::string str, Eigen::PlainObjectBase& V, Eigen::PlainObjectBase& F); } #ifdef IGL_HEADER_ONLY # include "read.cpp" #endif #endif