CGAL 6.0.1 - 3D Mesh Generation
Loading...
Searching...
No Matches
InitialPointsGenerator Concept Reference

Definition

The function object concept InitialPointsGenerator is designed to construct a set of initial points on the surface of the domain.

Has models
CGAL::Construct_initial_points_labeled_image
CGAL::Construct_initial_points_gray_image

Types

typedef unspecified_type MeshDomain
 Mesh domain type to be meshed, model of MeshDomain_3
 
typedef unspecified_type C3t3
 Type of the output mesh complex, model of MeshComplex_3InTriangulation_3
 

Operations

template<typename OutputIterator >
OutputIterator operator() (OutputIterator pts, int n)
 outputs a set of surface points for mesh initialization to the output iterator pts.
 
template<typename OutputIterator >
OutputIterator operator() (OutputIterator pts)
 Same as above, without the n parameter.
 

Member Function Documentation

◆ operator()() [1/2]

template<typename OutputIterator >
OutputIterator InitialPointsGenerator::operator() ( OutputIterator  pts)

Same as above, without the n parameter.

Since there is no n given like above, the functor must provide enough points to initialize the mesh generation process, i.e. to have a 3D triangulation with at least one facet in the restricted Delaunay triangulation.

If these conditions are not satisfied, then more points will be added automatically by the mesher.

Template Parameters
OutputIteratormodel of OutputIterator whose value type is a tuple-like object made of 3 elements :
  • a C3t3::Triangulation::Point : the point p,
  • an int : the minimal dimension of the subcomplexes to which p belongs,
  • a MeshDomain_3::Index : the index of the corresponding subcomplex.

◆ operator()() [2/2]

template<typename OutputIterator >
OutputIterator InitialPointsGenerator::operator() ( OutputIterator  pts,
int  n 
)

outputs a set of surface points for mesh initialization to the output iterator pts.

If, after insertion of these points, the triangulation is still not 3D, or does not have any facets in the restricted Delaunay triangulation, then more points will be added automatically by the mesher.

Template Parameters
OutputIteratormodel of OutputIterator whose value type is a tuple-like object made of 3 elements:
  • a C3t3::Triangulation::Point : the point p,
  • an int : the minimal dimension of the subcomplexes on which p lies,
  • a MeshDomain_3::Index : the index of the corresponding subcomplex.
Parameters
ptsan output iterator for the points
na lower bound on the number of points to construct for initialization. A generator can choose to ignore this parameter.