MeshKernel
|
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... | |
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.
meshkernel::TriangulationInterpolation::TriangulationInterpolation | ( | const std::vector< Point > & | locations, |
const std::vector< Sample > & | samples, | ||
Projection | projection | ||
) |
Constructor.
[in] | locations | Locations the values should be computed |
[in] | samples | Values to use for the interpolation |
[in] | projection | Projection to use |
|
inline |
Get the results.