34#include "MeshKernel/Definitions.hpp"
35#include "MeshKernel/Entities.hpp"
36#include "MeshKernel/Exceptions.hpp"
37#include "MeshKernel/Mesh2D.hpp"
38#include "MeshKernel/MeshTriangulation.hpp"
39#include "MeshKernel/Operations.hpp"
40#include "MeshKernel/Point.hpp"
41#include "MeshKernel/SampleInterpolator.hpp"
42#include "MeshKernel/Utilities/RTreeFactory.hpp"
55 const std::span<const double> yNodes,
57 : m_triangulation(xNodes, yNodes, projection) {}
62 : m_triangulation(nodes, projection) {}
71 void Interpolate(
const int propertyId,
const std::span<const Point> iterpolationNodes, std::span<double> result)
const override;
81 double InterpolateOnElement(
const UInt elementId,
const Point& interpolationPoint,
const std::vector<double>& sampleValues)
const;
A class derived from Mesh, which describes unstructures 2d meshes.
Definition Mesh2D.hpp:58
Contains a mesh triangulated from a set of points.
Definition MeshTriangulation.hpp:112
UInt NumberOfNodes() const
Get the number of nodes in the triangulation.
Definition MeshTriangulation.hpp:192
A struct describing a point in a two-dimensional space.
Definition Point.hpp:41
Interface for sample interpolation.
Definition SampleInterpolator.hpp:53
Interpolator for sample data on a triangulated grid.
Definition SampleTriangulationInterpolator.hpp:51
double InterpolateValue(const int propertyId, const Point &evaluationPoint) const override
Interpolate the sample data set at a single interpolation point.
SampleTriangulationInterpolator(const std::span< const double > xNodes, const std::span< const double > yNodes, const Projection projection)
Constructor.
Definition SampleTriangulationInterpolator.hpp:54
void Interpolate(const int propertyId, const Mesh2D &mesh, const Location location, std::span< double > result) const override
Interpolate the sample data at the points for the location (nodes, edges, faces)
void Interpolate(const int propertyId, const std::span< const Point > iterpolationNodes, std::span< double > result) const override
Interpolate the sample data set at the interpolation nodes.
SampleTriangulationInterpolator(const std::span< const Point > nodes, const Projection projection)
Constructor.
Definition SampleTriangulationInterpolator.hpp:60
UInt Size() const override
Get the number of nodes of size of the sample data.
Definition SampleTriangulationInterpolator.hpp:89
Contains the logic of the C++ static library.
Definition AveragingInterpolation.hpp:37
Projection
Enumerator describing the supported projections.
Definition Definitions.hpp:43
Location
Mesh locations enumeration.
Definition Definitions.hpp:76
std::uint32_t UInt
Integer type used when indexing mesh graph entities.
Definition Definitions.hpp:39