fix Labeled_mesh_domain_3 doc and add missing backward compatibility functions

This commit is contained in:
Sébastien Loriot 2022-09-19 21:32:02 +02:00
parent 4cb97e0767
commit b1610e10a7
8 changed files with 478 additions and 469 deletions

View File

@ -36,3 +36,7 @@ HTML_EXTRA_FILES = ${CGAL_PACKAGE_DOC_DIR}/fig/implicit_domain_3.jpg
${CGAL_PACKAGE_DOC_DIR}/fig/no-protection-complex.png
EXAMPLE_PATH += ${CGAL_PACKAGE_INCLUDE_DIR} # non-documented headers are advertised
EXTRACT_ALL = NO
HIDE_UNDOC_MEMBERS = YES
HIDE_UNDOC_CLASSES = YES

View File

@ -214,9 +214,8 @@ int main()
// - the second argument is a bounding sphere of the domain
// (Warning: Sphere_3 constructor uses square radius !)
Implicit_domain sphere_domain =
Implicit_domain::create_implicit_mesh_domain(function = sphere_centered_at_111,
bounding_object = K::Sphere_3(K::Point_3(1, 1, 1),
2.));
Implicit_domain::create_implicit_mesh_domain(sphere_centered_at_111,
K::Sphere_3(K::Point_3(1, 1, 1), 2.));
Domain domain(sphere_domain, polyhedron_domain);

View File

@ -49,7 +49,8 @@ int main()
v.push_back(f2);
// Domain (Warning: Sphere_3 constructor uses square radius !)
Mesh_domain domain(Function_wrapper(v), K::Sphere_3(CGAL::ORIGIN, 5.*5.), 1e-6);
Mesh_domain domain(Function_wrapper(v), K::Sphere_3(CGAL::ORIGIN, 5.*5.),
CGAL::parameters::relative_error_bound(1e-6));
// Set mesh criteria
Facet_criteria facet_criteria(30, 0.2, 0.02); // angle, size, approximation

View File

@ -12,8 +12,6 @@
// IO
#include <CGAL/IO/File_medit.h>
using namespace CGAL::parameters;
// Domain
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef FT_to_point_function_wrapper<K::FT, K::Point_3> Function;
@ -46,11 +44,10 @@ int main()
vps.push_back("+-");
/// [Domain creation] (Warning: Sphere_3 constructor uses square radius !)
namespace param = CGAL::parameters;
Mesh_domain domain(param::function = Function_wrapper(v, vps),
param::bounding_object = K::Sphere_3(CGAL::ORIGIN,
5.*5.),
param::relative_error_bound = 1e-6);
namespace params = CGAL::parameters;
Mesh_domain domain(Function_wrapper(v, vps),
K::Sphere_3(CGAL::ORIGIN,5.*5.),
params::relative_error_bound = 1e-6);
/// [Domain creation]
// Set mesh criteria
@ -59,10 +56,10 @@ int main()
Mesh_criteria criteria(facet_criteria, cell_criteria);
// Mesh generation
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, no_exude(), no_perturb());
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, params::no_exude(), params::no_perturb());
// Perturbation (maximum cpu time: 10s, targeted dihedral angle: default)
CGAL::perturb_mesh_3(c3t3, domain, time_limit = 10);
CGAL::perturb_mesh_3(c3t3, domain, params::time_limit = 10);
// Exudation
CGAL::exude_mesh_3(c3t3,12);

View File

@ -39,8 +39,8 @@ int main()
{
/// [Domain creation] (Warning: Sphere_3 constructor uses squared radius !)
Mesh_domain domain =
Mesh_domain::create_implicit_mesh_domain( function = sphere_function,
bounding_object = K::Sphere_3(CGAL::ORIGIN, 2.));
Mesh_domain::create_implicit_mesh_domain( sphere_function,
K::Sphere_3(CGAL::ORIGIN, 2.));
/// [Domain creation]
// Mesh criteria

View File

@ -54,8 +54,7 @@ int main()
/// [Domain creation] (Warning: Sphere_3 constructor uses squared radius !)
namespace p = CGAL::parameters;
Mesh_domain domain = Mesh_domain::create_implicit_mesh_domain
(p::function = &sphere_function,
p::bounding_object = K::Sphere_3(CGAL::ORIGIN, 2.)
(sphere_function, K::Sphere_3(CGAL::ORIGIN, 2.)
);
/// [Domain creation]

View File

@ -61,8 +61,8 @@ int main()
{
// Domain (Warning: Sphere_3 constructor uses squared radius !)
Mesh_domain domain =
Mesh_domain::create_implicit_mesh_domain(function = sphere_function,
bounding_object = K::Sphere_3(Point(1, 0, 0), 6.));
Mesh_domain::create_implicit_mesh_domain(sphere_function,
K::Sphere_3(Point(1, 0, 0), 6.));
// Mesh criteria
Mesh_criteria criteria(edge_size = 0.15,

File diff suppressed because it is too large Load Diff