MeshKernel
Public Member Functions | List of all members
meshkernel::TriangulationInterpolation Class Reference

A class used for triangulation interpolation. More...

#include <TriangulationInterpolation.hpp>

Public Member Functions

 TriangulationInterpolation (const std::vector< Point > &locations, const std::vector< Sample > &samples, Projection projection)
 Constructor. More...
 
void Compute ()
 Compute results on the interpolation points.
 
const auto & GetResults () const
 Get the results. More...
 

Detailed Description

A class used for triangulation interpolation.

As for averaging, the triangle interpolation operates at three specific Location - Faces, Nodes, and Edges. Only the values at the nodes of the identified triangle are used in the computation of each location. The algorithm operates as follow:

When a triangle enclosing a specific location is not found, the interpolated value at that location is invalid. The handling of spherical accurate projection occurs at low-level geometrical functions (IsPointInPolygonNodes, AreSegmentsCrossing). Therefore, the algorithm is independent of the implementation details that occur at the level of the geometrical functions.

Constructor & Destructor Documentation

◆ TriangulationInterpolation()

meshkernel::TriangulationInterpolation::TriangulationInterpolation ( const std::vector< Point > &  locations,
const std::vector< Sample > &  samples,
Projection  projection 
)

Constructor.

Parameters
[in]locationsLocations the values should be computed
[in]samplesValues to use for the interpolation
[in]projectionProjection to use

Member Function Documentation

◆ GetResults()

const auto& meshkernel::TriangulationInterpolation::GetResults ( ) const
inline

Get the results.

Returns
The vector with results

The documentation for this class was generated from the following file: