CGAL::quadratic_interpolation

Definition

The function quadratic_interpolation interpolates the function values and first degree functions defined from the function gradients. Both, function values and gradients, must be provided by functors.

#include <CGAL/interpolation_functions.h>

Parameters

See sibson_c1_interpolation.

template < class ForwardIterator, class Functor, class GradFunctor, class Traits>
typename Functor::result_type
quadratic_interpolation ( ForwardIterator first,
ForwardIterator beyond,
typename std::iterator_traits<ForwardIterator>:: value_type::second_type norm,
typename std::iterator_traits<ForwardIterator>::value_type:: first_type p,
Functor function_value,
GradFunctor function_gradient,
Traits traits)
This function generates the interpolated function value as the weighted sum of the values plus a linear term in the gradient for each point of the point/coordinate pairs in the range [. first, beyond.). See also sibson_c1_interpolation.
Precondition: norm 0 function_value(p).second == true for all points p of the point/coordinate pairs in the range [.first, beyond.).

Requirements

Same requirements as for sibson_c1_interpolation only that Traits::FT does not need to provide the square root operation.

See Also

InterpolationTraits
GradientFittingTraits
CGAL::Data_access<Map>
CGAL::sibson_gradient_fitting
CGAL::linear_interpolation
CGAL::Interpolation_traits_2<K>
CGAL::Interpolation_gradient_fitting_traits_2<K>
CGAL::natural_neighbor_coordinates_2
CGAL::regular_neighbor_coordinates_2
CGAL::surface_neighbor_coordinates_3