This commit is contained in:
Maxime Gimeno 2018-04-27 11:01:23 +02:00
parent c4da8690cb
commit 7a5e821183
2 changed files with 9 additions and 1 deletions

View File

@ -24,6 +24,10 @@
#include <CGAL/license/Polyhedron.h> #include <CGAL/license/Polyhedron.h>
#include <CGAL/boost/graph/named_function_params.h>
#include <CGAL/boost/graph/named_params_helper.h>
#include <CGAL/property_map.h>
#include <boost/graph/graph_traits.hpp>
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <CGAL/Inverse_index.h> #include <CGAL/Inverse_index.h>
#include <iostream> #include <iostream>

View File

@ -2032,13 +2032,17 @@ private: //------------------------------------------------------- private data
return os.good(); return os.good();
} }
template <typename P>
bool write_off(std::ostream& os, const Surface_mesh<P>& sm) {
return write_off(os, sm, CGAL::parameters::all_default());
}
/// \relates Surface_mesh /// \relates Surface_mesh
/// ///
/// This operator calls `write_off(std::ostream& os, const CGAL::Surface_mesh& sm)`. /// This operator calls `write_off(std::ostream& os, const CGAL::Surface_mesh& sm)`.
template <typename P> template <typename P>
std::ostream& operator<<(std::ostream& os, const Surface_mesh<P>& sm) std::ostream& operator<<(std::ostream& os, const Surface_mesh<P>& sm)
{ {
write_off(os, sm); write_off(os, sm, CGAL::parameters::all_default());
return os; return os;
} }