From 05038ebdd00ca4b2066b41e9be76ab500c76385f Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 2 Oct 2014 10:30:58 +0200 Subject: [PATCH] typos --- Surface_mesh/doc/Surface_mesh/Surface_mesh.txt | 10 +++++----- Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Surface_mesh/doc/Surface_mesh/Surface_mesh.txt b/Surface_mesh/doc/Surface_mesh/Surface_mesh.txt index 7679d2963e6..612889eb5bf 100644 --- a/Surface_mesh/doc/Surface_mesh/Surface_mesh.txt +++ b/Surface_mesh/doc/Surface_mesh/Surface_mesh.txt @@ -37,9 +37,9 @@ represent the basic elements of the halfedge data structure: - `Surface_mesh::Face_index` - `Surface_mesh::Edge_index` -Descriptors are just a typed wrapper for an index -and should be passed by value. They are -default constructible, which yields an *invalid* element. New +These types are just wrappers for an `unsigned int` and their +main purpose is to guarantee type safety. +They are default constructible, which yields an *invalid* element. New simplices 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 @@ -94,7 +94,7 @@ face are oriented counterclockwise, as illustrated in \cgalFigureRef{FigSurfaceMeshConnectivity} -\section sectionSurfaceMesh_iterators Ranges and Iterators and Circulators +\section sectionSurfaceMesh_iterators Ranges and Iterators `Surface_mesh` provides iterator ranges to enumerate all vertices, halfedges, edges, and faces. It provides member functions @@ -106,7 +106,7 @@ library. The following example shows how to obtain the iterator type from a range, alternatives for obtaining the begin and end iterator, -and alernatives for range-based for loops. +and alternatives for range-based for loops. \cgalExample{Surface_mesh/sm_iterators.cpp} diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h index d2b1bcc24ac..3205246c86d 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h @@ -802,7 +802,7 @@ public: /// \name Range Types /// /// Each range `R` in this section has a nested type `R::iterator`, - /// is convertible to `std:pair`, so that one can use `boost::tie()`, /// and can be used with `BOOST_FOREACH()`, as well as with the C++11 range based `for(..)` loop. ///@{ @@ -2286,8 +2286,9 @@ adjust_incoming_halfedge(Vertex_index v) template template typename Surface_mesh

::Face_index -Surface_mesh

::add_face(const Range& vertices) +Surface_mesh

::add_face(const Range& r) { + std::vector vertices(r.begin(), r.end()); // quick and dirty copy Vertex_index v; unsigned int i, ii, n((int)vertices.size()), id; std::vector halfedges(n);