#include "writeWRL.h" #include #include template IGL_INLINE bool igl::writeWRL( const std::string & str, const Eigen::PlainObjectBase & V, const Eigen::PlainObjectBase & F) { using namespace std; using namespace Eigen; assert(V.cols() == 3 && "V should have 3 columns"); assert(F.cols() == 3 && "F should have 3 columns"); ofstream s(str); if(!s.is_open()) { cerr<<"IOError: writeWRL() could not open "< FF(F.rows(),4); FF.leftCols(3) = F; FF.col(3).setConstant(-1); s<, Eigen::Matrix >(std::basic_string, std::allocator > const&, Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase > const&); #endif