Add read and write off taking a std::string as parameter

This commit is contained in:
Guillaume Damiand 2017-11-13 15:30:40 +01:00
parent 34b1e620c1
commit 4be7fac4f2
1 changed files with 9 additions and 1 deletions

View File

@ -89,6 +89,10 @@ bool write_off(const char* fname,
return false;
}
template <typename FaceGraph>
bool write_off(const std::string& fname,
const FaceGraph& g)
{ return write_off(fname.c_str(), g); }
namespace internal { namespace read_off_tools {
@ -198,6 +202,10 @@ bool read_off(const char* fname,
return false;
}
template <typename FaceGraph>
bool read_off(const std::string& fname,
FaceGraph& g)
{ return read_off(fname.c_str(), g); }
template <typename FaceGraph>
bool write_inp(std::ostream& os,