diff --git a/Surface_mesh/doc/Surface_mesh/Surface_mesh.txt b/Surface_mesh/doc/Surface_mesh/Surface_mesh.txt index 9eab20cd8b1..1847e31f6f9 100644 --- a/Surface_mesh/doc/Surface_mesh/Surface_mesh.txt +++ b/Surface_mesh/doc/Surface_mesh/Surface_mesh.txt @@ -51,8 +51,8 @@ main purpose is to guarantee type safety. They are default constructible, which yields an *invalid* element. New elements can be added and removed to the `Surface_mesh` through a set of low-level functions which do not maintain connectivity. One -exception is `Surface_mesh::add_face()` which tries to add a new -face to the mesh (defined by a sequence of vertices), and fails, if the +exception is `Surface_mesh::add_face()`, which tries to add a new +face to the mesh (defined by a sequence of vertices), and fails if the operation is not topologically valid. \code @@ -64,11 +64,14 @@ Mesh::Vertex_index w = m.add_vertex(Point(1,0,0)); m.add_face(u, v, w); \endcode -As `Surface_mesh` is index-based `Vertex_index`, `Face_index`, -`Halfedge_index` and `Edge_index` -don't have member functions to access connectivity or properties. -The functions of the `Surface_mesh` instance they were -created from must be used to obtain that information. +As `Surface_mesh` is index-based +\link Surface_mesh::Vertex_index Vertex_index\endlink, +\link Surface_mesh::Halfedge_index Halfedge_index\endlink, +\link Surface_mesh::Edge_index Edge_index\endlink, and +\link Surface_mesh::Face_index Face_index\endlink +do not have member functions to access connectivity or properties. +The functions of the `Surface_mesh` instance from which +they were created must be used to obtain this information. \section sectionSurfaceMeshConnectivity Connectivity @@ -327,7 +330,7 @@ to access data in temporary vectors of size `num_vertices()` this function must return a number larger than the largest index of the elements. -Iterators like the `Surface_mesh::Vertex_iterator` only enumerate +Iterators such as `Surface_mesh::Vertex_iterator` only enumerate elements that are not marked as deleted. diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h index c4a561ad0e1..35d53d1089a 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h @@ -1966,7 +1966,6 @@ private: //------------------------------------------------------- private data /// Inserts the surface mesh in an output stream in Ascii OFF format. /// Only the \em point property is inserted in the stream. /// \pre `operator<<(std::ostream&,const P&)` must be defined. - template bool write_off(std::ostream& os, const Surface_mesh

& sm) { typedef Surface_mesh

Mesh; @@ -2015,7 +2014,7 @@ private: //------------------------------------------------------- private data /// \relates Surface_mesh /// - /// This operator calls `write_off(std::istream& , CGAL::Surface_mesh)`. + /// This operator calls `write_off(std::ostream& os, const CGAL::Surface_mesh& sm)`. template std::ostream& operator<<(std::ostream& os, const Surface_mesh

& sm) { @@ -2158,8 +2157,8 @@ private: //------------------------------------------------------- private data /// \relates Surface_mesh - /// This operator calls `read_off(std::istream& , CGAL::Surface_mesh& sm)`. - /// \attention Up to CGAL 4.10 this operator called `sm.clear()`. + /// This operator calls `read_off(std::istream& is, CGAL::Surface_mesh& sm)`. + /// \attention Up to %CGAL 4.10 this operator called `sm.clear()`. template std::istream& operator>>(std::istream& is, Surface_mesh

& sm) {