\( \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.14.2 - 3D Triangulations
CGAL::Regular_triangulation_cell_base_with_weighted_circumcenter_3< Traits, Cb > Class Template Reference

#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
Traitsis the geometric traits class and must be a model of RegularTriangulationTraits_3.
Cbis 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<RT>.
Is Model Of:
RegularTriangulationCellBaseWithWeightedCircumcenter_3
See also
CGAL::Triangulation_cell_base_3
CGAL::Triangulation_cell_base_with_info_3
CGAL::Regular_triangulation_cell_base_3

Types

typedef Traits::Point_3 Point_3
 
typedef Traits::Weighted_point_3 Point
 

Access function

As a model of the concept RegularTriangulationCellBase_3, Regular_triangulation_cell_base_with_weighted_circumcenter_3 provides a weighted_circumcenter() member fonction.

In this model, the weighted_circumcenter() member fonction returns the weighted circumcenter of the cell. This Point_3 is computed using the Construct_weighted_circumcenter_3 functor of the traits class when this function is first called and its value is stored. In the next calls, the cached value is returned.

Note that the returned point has no weight.

const Point_3weighted_circumcenter (const Traits &gt=Traits()) const
 Computes the weighted circumcenter of the tetrahedron, or retrieves it if it has already been 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

◆ swap()

template<typename Traits , typename Cb >
void CGAL::Regular_triangulation_cell_base_with_weighted_circumcenter_3< Traits, Cb >::swap ( Regular_triangulation_cell_base_with_weighted_circumcenter_3< Traits, Cb > &  other)
throw (
)

Swaps the Regular_triangulation_cell_base_with_weighted_circumcenter_3 and other.

This function should be preferred to an assignment or the copy constructor if other is deleted thereafter.

◆ weighted_circumcenter()

template<typename Traits , typename Cb >
const Point_3& CGAL::Regular_triangulation_cell_base_with_weighted_circumcenter_3< Traits, Cb >::weighted_circumcenter ( const Traits &  gt = Traits()) const

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

The returned point has no weight.