From c78dfa3d61c60b46f040d0b6b89ed3ba66f237b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 7 Jan 2022 10:18:12 +0100 Subject: [PATCH] restore too agressive removal --- .../include/CGAL/Surface_mesh/IO/OFF.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Surface_mesh/include/CGAL/Surface_mesh/IO/OFF.h b/Surface_mesh/include/CGAL/Surface_mesh/IO/OFF.h index 6074e5b90fc..c1fa16ad529 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/IO/OFF.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/IO/OFF.h @@ -363,6 +363,15 @@ CGAL_DEPRECATED bool read_off(std::istream& is, Surface_mesh& sm, const C return IO::read_OFF(is, sm, np); } +/*! + \ingroup PkgSurfaceMeshIOFuncDeprecated + \deprecated This function is deprecated since \cgal 5.3, `CGAL::IO::read_OFF(std::istream&, const Surface_mesh&)` should be used instead. +*/ +template +CGAL_DEPRECATED bool read_off(Surface_mesh& sm, const std::string& filename) +{ + return IO::read_OFF(filename, sm, parameters::use_default_values()); +} #endif // CGAL_NO_DEPRECATED_CODE //////////////////////////////////////////////////////////////////////////////////////////////////// @@ -575,6 +584,16 @@ CGAL_DEPRECATED bool write_off(std::ostream& os, const Surface_mesh& sm, return IO::write_OFF(os, sm, np); } +/*! + \ingroup PkgSurfaceMeshIOFuncDeprecated + \deprecated This function is deprecated since \cgal 5.3, `CGAL::IO::write_OFF(std::ostream&, const Surface_mesh&)` should be used instead. +*/ +template +CGAL_DEPRECATED bool write_off(const Surface_mesh& sm, const std::string& filename) +{ + return IO::write_OFF(filename, sm, parameters::all_default()); +} + #endif // CGAL_NO_DEPRECATED_CODE } // namespace CGAL