Skip to content

Commit ba72c8b

Browse files
committed
vertex_index_map is only used for debug
1 parent 354fb90 commit ba72c8b

File tree

1 file changed

+26
-23
lines changed
  • Surface_mesh_simplification/doc/Surface_mesh_simplification/CGAL/Surface_mesh_simplification

1 file changed

+26
-23
lines changed

Surface_mesh_simplification/doc/Surface_mesh_simplification/CGAL/Surface_mesh_simplification/edge_collapse.h

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ the name of each function matches the name of an argument and wraps the actual p
2727
2828
This is an example with 2 arguments:
2929
30-
`vertex_index_map(the_actual_vertex_index_map).halfedge_index_map(the_actual_halfedge_index_map)`
30+
`get_cost(the_actual_cost).halfedge_index_map(the_actual_halfedge_index_map)`
3131
32-
`the_actual_vertex_index_map` and `the_actual_halfedge_index_map` are
33-
the actual parameters, while `vertex_index_map()` and `halfedge_index_map()`
32+
`the_actual_cost` and `the_actual_halfedge_index_map` are
33+
the actual parameters, while `get_cost()` and `halfedge_index_map()`
3434
are wrapper functions used to designate each formal argument.
3535
3636
All named parameters have default values so you only need to compose those for which the default
@@ -41,26 +41,6 @@ In the following subsections, each named parameter is documented as a helper fun
4141
function is the actual parameter to `edge_collapse()`, while the name of the helper
4242
function designates which formal argument it is.
4343
44-
\cgalHeading{vertex_index_map(VertexIndexMap vpm)}
45-
46-
Maps each vertex in the surface mesh into an unsigned integer number
47-
in the range `[0,num_vertices(surface_mesh))`.
48-
49-
`VertexIndexMap` must be a model of
50-
`ReadablePropertyMap`
51-
with key type
52-
`boost::graph_traits<EdgeCollapsableSurfaceMesh const>::%vertex_descriptor`
53-
and with value type `boost::graph_traits<EdgeCollapsableSurfaceMesh>::%size_type`,
54-
55-
<B>%Default</B>: the property map obtained by calling `get(CGAL::vertex_index,surface_mesh)`,
56-
which requires the surface mesh vertices to have an `id()` member properly initialized to the
57-
required value.
58-
59-
If the vertices don't have such an `id()`, you must pass some property map explicitly.
60-
An external property map can be easily obtained by calling
61-
`get(CGAL::vertex_external_index,surface_mesh)`. This constructs on the fly, and returns,
62-
a property map which non-intrusively associates a proper id with each vertex.
63-
6444
\cgalHeading{vertex_point_map(VertexPointMap vpm)}
6545
6646
Maps each vertex in the surface mesh into a 3D \cgal point.
@@ -148,6 +128,29 @@ simply qualify the <I>first</I>
148128
\cgalFootnote{The second and subsequent named parameters shall not be qualified as they are member functions}
149129
named parameter with `CGAL::`, as shown in the examples in the user manual.
150130
131+
\cgalHeading{vertex_index_map(VertexIndexMap vpm)}
132+
\cgalDebugBegin
133+
This parameter is only used by debug functions and is usually not needed for users.
134+
135+
Maps each vertex in the surface mesh into an unsigned integer number
136+
in the range `[0,num_vertices(surface_mesh))`.
137+
138+
`VertexIndexMap` must be a model of
139+
`ReadablePropertyMap`
140+
with key type
141+
`boost::graph_traits<EdgeCollapsableSurfaceMesh const>::%vertex_descriptor`
142+
and with value type `boost::graph_traits<EdgeCollapsableSurfaceMesh>::%size_type`,
143+
144+
<B>%Default</B>: the property map obtained by calling `get(CGAL::vertex_index,surface_mesh)`,
145+
which requires the surface mesh vertices to have an `id()` member properly initialized to the
146+
required value.
147+
148+
If the vertices don't have such an `id()`, you must pass some property map explicitly.
149+
An external property map can be easily obtained by calling
150+
`get(CGAL::vertex_external_index,surface_mesh)`. This constructs on the fly, and returns,
151+
a property map which non-intrusively associates a proper id with each vertex.
152+
\cgalDebugEnd
153+
151154
\cgalHeading{Semantics}
152155
153156

0 commit comments

Comments
 (0)