CGAL 6.2 - 3D Mesh Generation: CGAL::Mesh_constant_domain_field_3< GT, Index_ > Class Template Reference

CGAL 6.2 - 3D Mesh Generation

Loading...
Searching...
No Matches
List of all members
CGAL::Mesh_constant_domain_field_3< GT, Index_ > Class Template Reference
Reference Manual » Mesh Domain Fields

`#include <CGAL/Mesh_constant_domain_field_3.h>`

## Definition

template<typename GT, typename Index_>
class CGAL::Mesh_constant_domain_field_3< GT, Index_ >

The class `Mesh_constant_domain_field_3` is a model of concept `MeshDomainField_3`.

It provides a constant field accessible using queries on 3D-points.

The class `Mesh_constant_domain_field_3` can also be customized through `set_size()` operations to become a piecewise constant field, i.e., a sizing field with a constant size on each subpart of the domain.

Template Parameters

  GT | is the geometric traits class. It must match the type `Triangulation::Geom_traits`, where `Triangulation` is the nested type of the model of `MeshComplex_3InTriangulation_3` used in the meshing process.
  Index_ | is the type of index of the vertices of the triangulation. It must match the type `Index` of the model of `MeshDomain_3` used in the meshing process.

Is model of
  `MeshDomainField_3`

Examples
  Mesh_3/mesh_3D_image_variable_size.cpp.

## Types
typedef GT::FT | FT
| Numerical type.
typedef GT::Point_3 | Point_3
| Point type.
typedef Index_ | Index
| Type of index of the vertices of the triangulation.

## Creation
| Mesh_constant_domain_field_3 (const FT &size)
| Builds a constant domain field with size `size`.

## Operations
FT | operator() (const Point_3 &, const int dim, const Index &index) const
| Returns the size of query points of dimension `dim` and index `index`.
void | set_size (const FT &size, const int dim, const Index &index)
| Sets the size such that `operator()` for any query point of dimension `dim` and index `index` returns `size`.