diff --git a/Stream_support/include/CGAL/IO/PLY/PLY_writer.h b/Stream_support/include/CGAL/IO/PLY/PLY_writer.h index af8d2fc3ea2..cec8e1b539e 100644 --- a/Stream_support/include/CGAL/IO/PLY/PLY_writer.h +++ b/Stream_support/include/CGAL/IO/PLY/PLY_writer.h @@ -263,7 +263,7 @@ public: virtual void print(std::ostream& stream, const Index& index) { - write(stream, to_double(get(m_pmap, index).x())); + write(stream, to_double(get(m_pmap, index).x())); if (get_mode(stream) == CGAL::IO::ASCII) { stream << " "; } diff --git a/Surface_mesh/include/CGAL/Surface_mesh/IO/PLY.h b/Surface_mesh/include/CGAL/Surface_mesh/IO/PLY.h index fe482b997c7..869de8aea91 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/IO/PLY.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/IO/PLY.h @@ -458,10 +458,10 @@ bool fill_simplex_specific_header(std::ostream& os, << "property double y" << std::endl << "property double z" << std::endl; - + printers.push_back(new Double_coordinate_printer(sm.points())); } - + return true; } @@ -957,6 +957,8 @@ namespace IO { /// \cgalNamedParamsEnd /// /// \returns `true` if writing was successful, `false` otherwise. + + template bool write_PLY(std::ostream& os,