From d9f0f258a5e6e2b7f71c78d35c9e2b8a09f8c9f6 Mon Sep 17 00:00:00 2001 From: ange-clement Date: Mon, 13 Nov 2023 11:53:55 +0100 Subject: [PATCH] Added initial_points to the parameter doc --- Mesh_3/doc/Mesh_3/CGAL/Mesh_3/parameters.h | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/Mesh_3/doc/Mesh_3/CGAL/Mesh_3/parameters.h b/Mesh_3/doc/Mesh_3/CGAL/Mesh_3/parameters.h index dbf2ec22101..5665782338c 100644 --- a/Mesh_3/doc/Mesh_3/CGAL/Mesh_3/parameters.h +++ b/Mesh_3/doc/Mesh_3/CGAL/Mesh_3/parameters.h @@ -462,6 +462,10 @@ unspecified_type perturb(const Named_function_parameters& np = parameters::defau * i.e. the domain's `construct_initial_points_object()` * is called for the initialization of the meshing process. * + * \tparam InitialPointsGenerator a functor following the `InitialPointsGenerator` concept + * + * @param generator an instance of the InitialPointsGenerator functor + * * \cgalHeading{Example} * * \code{.cpp} @@ -471,12 +475,48 @@ unspecified_type perturb(const Named_function_parameters& np = parameters::defau * parameters::initial_points_generator(CGAL::Construct_initial_points_labeled_image(image))); * \endcode * + * \sa `CGAL::parameters::initial_points()` * \sa `CGAL::make_mesh_3()` * \sa `MeshDomain_3::Construct_initial_points` * */ template unspecified_type initial_points_generator(const InitialPointsGenerator& generator); +/*! + * \ingroup PkgMesh3Parameters + * + * The function `parameters::initial_points()` enables the user to + * specify a `std::vector` of initial points + * to the mesh generation function `make_mesh_3()`. + * The initial points vector is of type `std::vector>` where + * `Weighted_point_3` is the point's position and weight, + * `int` is the dimension of the minimal dimension subcomplex on which the point lies, and + * `Index` is the underlying subcomplex index. + * + * \tparam MeshDomain model of `MeshDomain_3` + * \tparam C3t3 model of `MeshComplex_3InTriangulation_3` + * + * @param initial_points a vector containing points of type + * `std::tuple` + * + * \cgalHeading{Example} + * + * \code{.cpp} + * // Creation of the initial_points vector + * std::vector> initial_points; + * // Mesh generation from labelled image with connexity checks. + * C3t3 c3t3 = make_mesh_3(domain, + * criteria, + * parameters::initial_points(std::cref(initial_points));//use std::cref to avoid a copy + * \endcode + * + * \sa `CGAL::parameters::initial_points_generator()` + * \sa `CGAL::make_mesh_3()` + * \sa `MeshDomain_3::Construct_initial_points` + * + */ +template +unspecified_type initial_points(const std::vector>& initial_points); } /* namespace parameters */ } /* namespace CGAL */