CGAL::parameters::lloyd

Definition

The function parameters::lloyd allows the user to trigger a call of lloyd_optimize_mesh_3 in 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
parameters::lloyd ( double time_limit = 0,
std::size_t max_iteration_number = 0,
double convergence = 0.02,
double 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 lloyd_optimize_mesh_3 function. See its manual page for further details.

See Also

no_lloyd
lloyd_optimize_mesh_3
make_mesh_3
refine_mesh_3

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));