#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 constructed on surfaces, to be used in the make_mesh_3() function for mesh generation.
Let MeshDomain be a model of MeshDomain_3 and C3t3 be a model of MeshComplex_3InTriangulation_3 being used by make_mesh_3(). Items in the container are then tuple-like objects containing a Weighted_point_3, an int, and a MeshDomain::Index, where Weighted_point_3 represents the position and the weight of the point, int the dimension of the minimal subcomplex on which the point lies, and MeshDomain::Index the corresponding subcomplex index. These initial points are inserted after the initialization of 1-dimensional features.
Initialization is considered to be complete if the triangulation is a 3D triangulation with at least one facet in the restricted Delaunay triangulation (i.e., its dual intersects the input surface).
If the parameter parameters::initial_points_generator() is set, the points from this parameter will be inserted before calling the initial points generator.
If after the insertion of initial points (possibly together with the input generator), the initialization is not complete, the domain's construct_initial_points_object() will be called.
- Template Parameters
-
| InitialPointsRange | a model of Range containing tuple-like objects of C3t3::Triangulation::Geom_traits::Weighted_point_3, int, MeshDomain::Index. |
- Parameters
-
| initial_points | an instance of InitialPointsRange |
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 InitialPointsRange &initial_points)
The function parameters::initial_points() enables the user to specify a container,...
- See also
CGAL::make_mesh_3()
-
CGAL::parameters::initial_points_generator()
-
MeshDomain_3::Construct_initial_points