Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
T_Delaunay_triangulation_extension_3< DelaunayTriangulation3 >::Get_area_of_dual_of_edge Class Reference

Given the dual of an edge, compute its area. More...

#include <Delaunay_triangulation_extension_3.hpp>

Constructors

 Get_area_of_dual_of_edge (const DelaunayTriangulation3 &T)
 The functor has to be constructed with a given 3D Delaunay triangulation. More...
 

Functors

FT operator() (const Edge &edge) const
 Given the dual of an edge, compute its area. More...
 
template<class InputIterator >
FT operator() (InputIterator begin, InputIterator end) const
 Compute the cumulated area of the duals of all edges in between [begin, end). More...
 

Detailed Description

template<class DelaunayTriangulation3>
class SBL::GT::T_Delaunay_triangulation_extension_3< DelaunayTriangulation3 >::Get_area_of_dual_of_edge

Given the dual of an edge, compute its area.

It uses the Get_dual_of_edge fucntor for storing the dual of the input edge as a polygon, and then compute the area of the polygon. If the polygon is infinite, the infinite value (or a maximal value if no infinite value exists) is returned.

Constructor & Destructor Documentation

◆ Get_area_of_dual_of_edge()

Get_area_of_dual_of_edge ( const DelaunayTriangulation3 &  T)
inline

The functor has to be constructed with a given 3D Delaunay triangulation.

Member Function Documentation

◆ operator()() [1/2]

FT operator() ( const Edge edge) const
inline

Given the dual of an edge, compute its area.

It uses the Get_dual_of_edge fucntor for storing the dual of the input edge as a polygon, and then compute the area of the polygon. If the polygon is infinite, the infinite value (or a maximal value if no infinite value exists) is returned.

Parameters
edgeThe input edge for which we want the area of its dual.

◆ operator()() [2/2]

FT operator() ( InputIterator  begin,
InputIterator  end 
) const
inline

Compute the cumulated area of the duals of all edges in between [begin, end).

It uses the first functor for computing the area of the dual of each edge.

Precondition
No edge has an infinite dual.