\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)

CGAL 4.8 - 3D Triangulations

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
List of all members
CGAL::Regular_triangulation_cell_base_with_weighted_circumcenter_3< RegularTriangulationTraits_3, Cb > Class Template Reference
Vertex and Cell Classes

`#include <CGAL/Regular_triangulation_cell_base_with_weighted_circumcenter_3.h>`

## Inherits from

Cb.

## Definition

The class `Regular_triangulation_cell_base_with_weighted_circumcenter_3` derives from `Cb`, a cell base class of a 3D triangulation.

It provides an easy way to cache the computation of the weighted circumcenters of tetrahedra. Note that input/output operators discard this additional information.

All functions modifying the vertices of the cell invalidate the cached circumcenter.

Template Parameters

  RegularTriangulationTraits_3 | is the geometric traits class.
  Cb | is a cell base class from which `Regular_triangulation_cell_base_with_weighted_circumcenter_3` derives. Cb should be a model of `RegularTriangulationCellBase_3`. It has the default value `Regular_triangulation_cell_base_3<RegularTriangulationTraits_3>`.

Is Model Of:
  `RegularTriangulationCellBase_3`

See Also
  `CGAL::Triangulation_cell_base_3`
  `CGAL::Triangulation_cell_base_with_info_3`
  `CGAL::Regular_triangulation_cell_base_3`

## Types
typedef RegularTriangulationTraits_3::Bare_point | Bare_point

## Access function
As a model of the concept `RegularTriangulationCellBase_3`, `Regular_triangulation_cell_base_3` provides a `weighted_circumcenter()` member fonction. In this model, the `weighted_circumcenter()` member fonction returns the weighted circumcenter of the cell. This `Bare_point` is computed by the `Construct_weighted_circumcenter_3` constructor of the traits class when this function is first called. In the next calls, the cached value is returned. Note that this point has no weight.
const Bare_point & | weighted_circumcenter (const RegularTriangulationTraits_3 &gt=RegularTriangulationTraits_3()) const
| Computes the weighted circumcenter of the tetrahedron, or retrieves it if already computed. More...
void | swap (Regular_triangulation_cell_base_with_weighted_circumcenter_3 &other) throw ()
| Swaps the Regular_triangulation_cell_base_with_weighted_circumcenter_3 and other. More...

## Member Function Documentation

template<typename RegularTriangulationTraits_3 , typename Cb >

void CGAL::Regular_triangulation_cell_base_with_weighted_circumcenter_3< RegularTriangulationTraits_3, Cb >::swap | ( | Regular_triangulation_cell_base_with_weighted_circumcenter_3< RegularTriangulationTraits_3, Cb > & | other) |  |
throw | ( |
| ) |  |

Swaps the Regular_triangulation_cell_base_with_weighted_circumcenter_3 and other.

Should be preferred to an assignment or copy constructor when other is deleted after that.

template<typename RegularTriangulationTraits_3 , typename Cb >

const Bare_point& CGAL::Regular_triangulation_cell_base_with_weighted_circumcenter_3< RegularTriangulationTraits_3, Cb >::weighted_circumcenter | ( | const RegularTriangulationTraits_3 & | gt = `RegularTriangulationTraits_3()`) |  | const

Computes the weighted circumcenter of the tetrahedron, or retrieves it if already computed.

The returned point has no weight.