mirror of https://github.com/CGAL/cgal
Add read and write off taking a std::string as parameter
This commit is contained in:
parent
34b1e620c1
commit
4be7fac4f2
|
|
@ -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,7 +202,11 @@ 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,
|
||||
const FaceGraph& g,
|
||||
|
|
|
|||
Loading…
Reference in New Issue