grouping named parameters

This commit is contained in:
Lingjie Zhu 2018-07-15 12:06:34 +08:00
parent 3fdd1ee45b
commit 1f78b9590c
4 changed files with 28 additions and 4 deletions

View File

@ -8,7 +8,7 @@ HIDE_UNDOC_MEMBERS = true
HIDE_UNDOC_CLASSES = true
# macros to be used inside the code
ALIASES += "cgalNamedParamsBegin=<dl class=\"params\"><dt>Named Parameters</dt><dd> <table class=\"params\">"
ALIASES += "cgalNamedParamsBegin{1}=<dl class=\"params\"><dt>\1</dt><dd> <table class=\"params\">"
ALIASES += "cgalNamedParamsEnd=</table> </dd> </dl>"
ALIASES += "cgalParamBegin{1}=<tr><td class=\"paramname\">\ref VSA_\1 \"\1\"</td><td>"
ALIASES += "cgalParamEnd=</td></tr>"

View File

@ -45,7 +45,11 @@ In the following, we assume that the following types are provided as template pa
<li>`GeomTraits` a geometric traits class in which constructions are performed and predicates evaluated. Throughout this package, a \cgal `Kernel` fulfills the requirements.
</ul>
Here is the list of the named parameters available in this package:
The named parameters available in this package are grouped into 3 modules listed below.
\defgroup vsa_np_algorithm Algorithm Parameters
\ingroup vsa_namedparameters
\cgalHeading{Parameters for the Approximation Step}
\cgalNPTableBegin
@ -104,6 +108,14 @@ the number of relaxation iterations interleaved within seeding.\n
\b Default value is `5`
\cgalNPEnd
\cgalNPTableEnd
\defgroup vsa_np_meshing Meshing Parameters
\ingroup vsa_namedparameters
\cgalHeading{Parameters for the Meshing Step}
\cgalNPTableBegin
\cgalNPBegin{subdivision_ratio} \anchor VSA_subdivision_ratio
the chord subdivision ratio threshold used by the meshing step.\n
\b Type : `GeomTraits::FT` \n
@ -133,6 +145,14 @@ set the plane approximated with the PCA algorithm in the meshing step.\n
\b Default value is `false`
\cgalNPEnd
\cgalNPTableEnd
\defgroup vsa_np_output Output Parameters
\ingroup vsa_namedparameters
\cgalHeading{Parameters for Retrieving the Results}
\cgalNPTableBegin
\cgalNPBegin{face_proxy_map} \anchor VSA_face_proxy_map
the property map outputs the proxy index of each face of the input polygon mesh.\n
\b Type: a class model of `ReadWritePropertyMap` with `boost::graph_traits<TriangleMesh>::%face_descriptor` as key type and the value type `std::size_t`\n

View File

@ -874,7 +874,7 @@ public:
* @param np optional sequence of \ref vsa_namedparameters among the ones listed below
* @return `true` if the extracted surface mesh is manifold, `false` otherwise.
*
* \cgalNamedParamsBegin
* \cgalNamedParamsBegin{Meshing Named Parameters}
* \cgalParamBegin{subdivision_ratio} chord subdivision ratio threshold to the chord length or average edge length.
* \cgalParamEnd
* \cgalParamBegin{relative_to_chord} set `true` if the subdivision_ratio is the ratio of the

View File

@ -55,7 +55,7 @@ unspecified_type all_default();
* @param np optional sequence of \ref vsa_namedparameters among the ones listed below
* @return `true` if the indexed triangles represent a 2-manifold, oriented surface mesh, and `false` otherwise.
*
* \cgalNamedParamsBegin
* \cgalNamedParamsBegin{Algorithm Named Parameters}
* \cgalParamBegin{geom_traits} a geometric traits class instance, model of Kernel.
* Exact constructions kernels are not supported by this function.
* \cgalParamEnd
@ -74,6 +74,8 @@ unspecified_type all_default();
* \cgalParamEnd
* \cgalParamBegin{nb_of_relaxations} number of relaxation iterations interleaved within seeding.
* \cgalParamEnd
* \cgalNamedParamsEnd
* \cgalNamedParamsBegin{Meshing Named Parameters}
* \cgalParamBegin{subdivision_ratio} chord subdivision ratio threshold to the chord length or average edge length.
* \cgalParamEnd
* \cgalParamBegin{relative_to_chord} if `true` the `subdivision_ratio` is the ratio of the
@ -85,6 +87,8 @@ unspecified_type all_default();
* \cgalParamEnd
* \cgalParamBegin{pca_plane} set `true` if use PCA plane fitting, otherwise use the default area averaged plane parameters.
* \cgalParamEnd
* \cgalNamedParamsEnd
* \cgalNamedParamsBegin{Output Named Parameters}
* \cgalParamBegin{face_proxy_map} a ReadWritePropertyMap with
* `boost::graph_traits<TriangleMesh>::%face_descriptor` as key and `std::size_t` as value type.
* A proxy is a set of connected faces which are placed under the same proxy patch (see \cgalFigureRef{iterations}).