CGAL 6.0.1 - 3D Mesh Generation
Loading...
Searching...
No Matches
CGAL::Construct_initial_points_gray_image< C3t3, MeshDomain, Functor > Struct Template Reference

#include <CGAL/Mesh_3/Construct_initial_points_gray_image.h>

Definition

template<typename C3t3, typename MeshDomain, typename Functor = CGAL::Null_functor>
struct CGAL::Construct_initial_points_gray_image< C3t3, MeshDomain, Functor >

Functor for generating initial points in gray images.

This functor is a model of the InitialPointsGenerator concept, and can be passed as a parameter to CGAL::make_mesh_3 using the CGAL::parameters::initial_points_generator() parameter function.

On images that contain multiple non-connected components, this functor will scan the full image and output points on every component.

Is model of
InitialPointsGenerator
See also
CGAL::parameters::initial_points_generator()
CGAL::make_mesh_3()
CGAL::Construct_initial_points_labeled_image

Public Member Functions

template<typename OutputIterator >
OutputIterator operator() (OutputIterator pts, int n=20) const
 constructs at least n points by collecting them on the surface of all objects in the image, even if they are non-connected components.
 

Member Function Documentation

◆ operator()()

template<typename C3t3 , typename MeshDomain , typename Functor = CGAL::Null_functor>
template<typename OutputIterator >
OutputIterator CGAL::Construct_initial_points_gray_image< C3t3, MeshDomain, Functor >::operator() ( OutputIterator  pts,
int  n = 20 
) const

constructs at least n points by collecting them on the surface of all objects in the image, even if they are non-connected components.

Using this functor guarantees to initialize each connected component.

Template Parameters
OutputIteratormodel of OutputIterator for tuple-like objects containing
  • a Weighted_point_3 for the point
  • an int for the minimal dimension of the subcomplexes on which the point lies
  • a MeshDomain::Index for the corresponding subcomplex index
MeshDomainmodel of MeshDomain_3
C3t3model of MeshComplex_3InTriangulation_3