CGAL 6.0.1 - 3D Mesh Generation
|
#include <CGAL/Mesh_3/Construct_initial_points_labeled_image.h>
Functor for generating initial points in labeled 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 scans the complete image and outputs points to initialize each component.
C3t3 | model of MeshComplex_3InTriangulation_3 |
MeshDomain | model of MeshDomain_3 |
InitialPointsGenerator
Public Member Functions | |
template<typename OutputIterator > | |
OutputIterator | operator() (OutputIterator pts, int n=20) const |
constructs at least n initial points, by scanning the image and collecting points in each object in the image, even if they are non-connected components. | |
template<typename OutputIterator , typename TransformOperator > | |
OutputIterator | operator() (OutputIterator pts, TransformOperator transform, int n=20) const |
Same as above, but a TransformOperator that transforms values of the image is used. | |
OutputIterator CGAL::Construct_initial_points_labeled_image< C3t3, MeshDomain >::operator() | ( | OutputIterator | pts, |
int | n = 20 |
||
) | const |
constructs at least n
initial points, by scanning the image and collecting points in each object in the image, even if they are non-connected components.
This ensures that each component will be initialized.
OutputIterator | model of OutputIterator for tuple-like objects containing
|
OutputIterator CGAL::Construct_initial_points_labeled_image< C3t3, MeshDomain >::operator() | ( | OutputIterator | pts, |
TransformOperator | transform, | ||
int | n = 20 |
||
) | const |
Same as above, but a TransformOperator
that transforms values of the image is used.
OutputIterator | model of OutputIterator for tuple-like objects containing
|
MeshDomain | model of MeshDomain_3 |
TransformOperator | functor that transforms values of the image. It must provide the following type:result_type : a type that supports the '==' operatorand the following operator: result_type operator()(Word v) with Word the type of the image values. |
C3t3 | model of MeshComplex_3InTriangulation_3 |
The following lines show how to insert initial points in the c3t3
object. [insert initial points]
[insert initial points]