CGAL 6.1.1 - Weights

Loading...
Searching...
No Matches
List of all members | Public Member Functions
BarycentricWeights_2 Concept Reference
Reference Manual » Concepts

## Definition

A concept that describes the set of methods required in all classes used in the computation of 2D generalized barycentric weights.

Has models
  `CGAL::Weights::Wachspress_weights_2`
  `CGAL::Weights::Mean_value_weights_2`
  `CGAL::Weights::Discrete_harmonic_weights_2`

## Public Member Functions
template<typename OutIterator >
OutIterator | operator() (const Point_2 &query, OutIterator w_begin)
| fills a destination range with 2D generalized barycentric weights computed at the `query` point with respect to the vertices of the input polygon.

## Member Function Documentation

## ◆ operator()()

template<typename OutIterator >

OutIterator BarycentricWeights_2::operator() | ( | const Point_2 & | query,
|  | OutIterator | w_begin
| ) |  |

fills a destination range with 2D generalized barycentric weights computed at the `query` point with respect to the vertices of the input polygon.

Template Parameters

  OutIterator | a model of `OutputIterator` whose value type is `FieldNumberType`

The number of computed weights is equal to the number of polygon vertices.