mirror of https://github.com/CGAL/cgal
start documenting use_default_values()
This commit is contained in:
parent
8e6be46010
commit
7900a96115
|
|
@ -0,0 +1,11 @@
|
||||||
|
namespace CGAL{
|
||||||
|
namespace parameters {
|
||||||
|
/// \ingroup PkgBGLRef
|
||||||
|
/// Type of the default named parameter pack
|
||||||
|
typedef unspecified_type Default_named_parameters;
|
||||||
|
|
||||||
|
/// \ingroup PkgBGLRef
|
||||||
|
/// returns a default named parameter type indicating that default values should be used.
|
||||||
|
Default_named_parameters use_default_values();
|
||||||
|
|
||||||
|
} }
|
||||||
|
|
@ -24,7 +24,7 @@ The named parameters in the snippet use the tags `predecessor_map` and `distance
|
||||||
and they are concatenated using the dot operator.<BR>
|
and they are concatenated using the dot operator.<BR>
|
||||||
|
|
||||||
A similar mechanism was introduced in \cgal, with the small difference that the named parameters
|
A similar mechanism was introduced in \cgal, with the small difference that the named parameters
|
||||||
tag live in the `CGAL::parameters::` namespace and `CGAL::parameters::all_default()` can be used to indicate
|
tag live in the `CGAL::parameters::` namespace and `CGAL::parameters::use_default_values()` can be used to indicate
|
||||||
that default values of optional named parameters must be used.
|
that default values of optional named parameters must be used.
|
||||||
As in the \bgl, named parameters in \cgal are also concatenated using
|
As in the \bgl, named parameters in \cgal are also concatenated using
|
||||||
the dot operator, and a typical usage is thus:
|
the dot operator, and a typical usage is thus:
|
||||||
|
|
@ -40,7 +40,9 @@ CGAL::copy_face_graph(g1, g2);
|
||||||
CGAL::copy_face_graph(g1, g2,
|
CGAL::copy_face_graph(g1, g2,
|
||||||
CGAL::parameters::vertex_point_map(vpm) //parameter for g1
|
CGAL::parameters::vertex_point_map(vpm) //parameter for g1
|
||||||
.vertex_to_vertex_map(v2v), //other parameter for g1
|
.vertex_to_vertex_map(v2v), //other parameter for g1
|
||||||
CGAL::parameters::all_default()); //parameter for g2
|
CGAL::parameters::use_default_values()); //parameter for g2
|
||||||
\endcode
|
\endcode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
˛
|
˛
|
||||||
|
|
|
||||||
|
|
@ -683,6 +683,8 @@ user might encounter.
|
||||||
|
|
||||||
- `CGAL::set_triangulation_ids()`
|
- `CGAL::set_triangulation_ids()`
|
||||||
|
|
||||||
|
- `CGAL::parameters::use_default_values()`
|
||||||
|
|
||||||
\cgalCRPSection{Iterators}
|
\cgalCRPSection{Iterators}
|
||||||
- `CGAL::Halfedge_around_source_iterator`
|
- `CGAL::Halfedge_around_source_iterator`
|
||||||
- `CGAL::Halfedge_around_target_iterator`
|
- `CGAL::Halfedge_around_target_iterator`
|
||||||
|
|
|
||||||
|
|
@ -1106,7 +1106,7 @@ double approximate_Hausdorff_distance(
|
||||||
* \cgalParamNEnd
|
* \cgalParamNEnd
|
||||||
* \cgalNamedParamsEnd
|
* \cgalNamedParamsEnd
|
||||||
*
|
*
|
||||||
* The function `CGAL::parameters::all_default()` can be used to indicate to use the default values
|
* The function `CGAL::parameters::use_default_values()` can be used to indicate to use the default values
|
||||||
* for `np1` and specify custom values for `np2`.
|
* for `np1` and specify custom values for `np2`.
|
||||||
*/
|
*/
|
||||||
template< class Concurrency_tag,
|
template< class Concurrency_tag,
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@ namespace CGAL {
|
||||||
namespace Polygon_mesh_processing {
|
namespace Polygon_mesh_processing {
|
||||||
namespace parameters {
|
namespace parameters {
|
||||||
|
|
||||||
|
/// TODO: remove this one and deprecate it
|
||||||
|
|
||||||
/*! \ingroup namedparameters
|
/*! \ingroup namedparameters
|
||||||
This function can be used to indicate that all optional named parameters
|
This function can be used to indicate that all optional named parameters
|
||||||
to be used are the default ones. This is particularly useful when a function
|
to be used are the default ones. This is particularly useful when a function
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ int main(int argc, char** argv)
|
||||||
approx.run(10);
|
approx.run(10);
|
||||||
|
|
||||||
// extract approximated mesh with default parameters
|
// extract approximated mesh with default parameters
|
||||||
approx.extract_mesh(CGAL::parameters::all_default());
|
approx.extract_mesh(CGAL::parameters::use_default_values());
|
||||||
|
|
||||||
// get approximated triangle soup
|
// get approximated triangle soup
|
||||||
std::vector<Kernel::Point_3> anchors;
|
std::vector<Kernel::Point_3> anchors;
|
||||||
|
|
|
||||||
|
|
@ -43,18 +43,6 @@ enum Verbose_level {
|
||||||
VERBOSE
|
VERBOSE
|
||||||
};
|
};
|
||||||
|
|
||||||
// the named parameter header being not documented the doc is put here for now
|
|
||||||
#ifdef DOXYGEN_RUNNING
|
|
||||||
namespace parameters {
|
|
||||||
|
|
||||||
/*! \ingroup bgl_namedparameters
|
|
||||||
* This function is used when default parameters are just fine for approximation or meshing.
|
|
||||||
*/
|
|
||||||
unspecified_type all_default();
|
|
||||||
|
|
||||||
} // namespace parameters
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \ingroup PkgTSMARef
|
* \ingroup PkgTSMARef
|
||||||
* @brief approximates the input mesh with plane proxies.
|
* @brief approximates the input mesh with plane proxies.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue