template<typename MeshDomain , typename C3t3 >
unspecified_type CGAL::parameters::initial_points |
( |
const std::vector< std::tuple< C3t3::Triangulation::Geom_traits::Weighted_point_3, int, MeshDomain::Index > > & |
initial_points | ) |
|
#include <CGAL/Mesh_3/parameters.h>
The function parameters::initial_points()
enables the user to specify a container model of Range
that contains initial points to be used in the make_mesh_3()
function for mesh generation.
The Range
contains elements of type std::tuple<Weighted_point_3, int, Index>
, where Weighted_point_3
represents the position and weight of the point, int
the dimension of the minimal subcomplex on which the point lies, and Index
the corresponding subcomplex index.
If this parameter is set, the domain's construct_initial_points_object()
will not be called. If the parameter parameters::initial_points_generator()
is set, the points will be inserted before calling the functor.
- Template Parameters
-
- Parameters
-
initial_points | a Range that contains points of type std::tuple<C3t3::Triangulation::Geom_traits::Weighted_point_3, int, MeshDomain::Index> |
Example
std::vector<std::tuple<K::Weighted_point_3, int, Mesh_domain::Index>>
initial_points;
C3t3 c3t3 = make_mesh_3<c3t3>(domain,
criteria,
unspecified_type initial_points(const std::vector< std::tuple< C3t3::Triangulation::Geom_traits::Weighted_point_3, int, MeshDomain::Index > > &initial_points)
The function parameters::initial_points() enables the user to specify a container model of Range that...
- See also
CGAL::parameters::initial_points_generator()
-
CGAL::make_mesh_3()
-
MeshDomain_3::Construct_initial_points
#include <CGAL/Mesh_3/parameters.h>
The function parameters::initial_points_generator()
enables the user to specify a functor that follows the InitialPointsGenerator
concept to the mesh generation function make_mesh_3()
.
This functor is called for the initialization of the meshing process. If this parameter is specified without arguments, the default behavior is executed, which calls the domain's construct_initial_points_object()
for the initialization of the meshing process.
If the parameter parameters::initial_points()
is used, the points it provides are inserted before any other initialization.
If the generator does not generate enough points, the domain's construct_initial_points_object()
will be called.
- Template Parameters
-
- Parameters
-
Example
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, params::initial_points_generator(img_pts_generator)
);
Functor for generating initial points in labeled images.
Definition: Construct_initial_points_labeled_image.h:94
- See also
CGAL::make_mesh_3()
-
CGAL::parameters::initial_points()
-
MeshDomain_3::Construct_initial_points