The class Implicit_to_labeled_subdomains_function_wrapper
is a helper class designed to wrap an implicit function which describes a domain by [p
is inside if f(p)<0
] to a function that takes its values into {1, 2}
and thus describes a multidomain: the subspace described by f(p)<0
is attributed the subdomain index 1
and the subspace described by f(p)>0
is attributed the subdomain index 2
.
Note that for the 3D mesh generator [f(p)=0
] means that p is outside the domain. Since this wrapper has values into {1, 2}
, both the interior and the exterior of the periodic domain described by the input implicit function are meshed, thus yielding a periodic mesh of the entire canonical cuboid.
- Template Parameters
-
Function | provides the definition of the function. This parameter stands for a model of the concept ImplicitFunction described in the surface mesh generation package. The number types Function::FT and BGT::FT are required to match. |
BGT | is a geometric traits class that provides the basic operations to implement intersection tests and intersection computations through a bisection method. This parameter must be instantiated with a model of the concept BisectionGeometricTraits_3 . |
- See also
Implicit_multi_domain_to_labeling_function_wrapper
.
- Examples:
- Periodic_3_mesh_3/mesh_implicit_shape_with_subdomains.cpp.