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;
|
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 {
|
namespace internal { namespace read_off_tools {
|
||||||
|
|
||||||
|
|
@ -198,6 +202,10 @@ bool read_off(const char* fname,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename FaceGraph>
|
||||||
|
bool read_off(const std::string& fname,
|
||||||
|
FaceGraph& g)
|
||||||
|
{ return read_off(fname.c_str(), g); }
|
||||||
|
|
||||||
template <typename FaceGraph>
|
template <typename FaceGraph>
|
||||||
bool write_inp(std::ostream& os,
|
bool write_inp(std::ostream& os,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue