diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h index 5321c329182..b6a19aada27 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h @@ -2045,6 +2045,8 @@ private: //------------------------------------------------------- private data /// The operator reads the point property as well as "v:normal", "v:color", and "f:color". /// Vertex texture coordinates are ignored. /// \pre `operator>>(std::istream&,const P&)` must be defined. + /// \pre The data in the stream must represent a two-manifold. If this is not the case + /// the `failbit` of `is` is set and the mesh cleared. template bool read_off(std::istream& is, Surface_mesh

& sm) @@ -2123,9 +2125,9 @@ private: //------------------------------------------------------- private data Face_index fi = sm.add_face(vr); if(fi == sm.null_face()) { - std::cout<< "Warning: Facets don't seem to be oriented. Loading a Soup of polygons instead."<