Function

CGAL::parameters::lloyd

Definition

The function parameters::lloyd allows the user to trigger a call of lloyd_optimize_mesh_3 in the mesh generation functions make_mesh_3 and refine_mesh_3. It also allows the user to pass parameters to the optimization function lloyd_optimize_mesh_3 through these mesh generation functions.

#include <CGAL/refine_mesh_3.h>

parameters::internal::Lloyd_options
parameters::lloyd ( double parameters::time_limit = 0,
std::size_t parameters::max_iteration_number = 0,
double parameters::convergence = 0.02,
double parameters::freeze_bound = 0.01)

Parameters

The parameters are named parameters. They are the same (i.e. they have the same name and the same default values) as the parameters of the lloyd_optimize_mesh_3 function. See its manual page for further details.

Example

// Mesh generation with lloyd optimization step
C3t3 c3t3 = make_mesh_3<c3t3>(domain, criteria, parameters::lloyd());
refine_mesh_3(c3t3, domain, criteria, parameters::lloyd(parameters::time_limit=10));

See Also

CGAL::no_lloyd
CGAL::lloyd_optimize_mesh_3
CGAL::make_mesh_3
CGAL::refine_mesh_3