33#ifndef OPENSWMMVIS_MESH_NATURALNBINTERPOLATOR_H
34#define OPENSWMMVIS_MESH_NATURALNBINTERPOLATOR_H
60 bool build(
const QVector<QPointF> &
pts,
const QVector<double> &z, QString *
err);
64 bool build(
const QVector<QPointF> &
pts, QString *
err);
89 bool weightsAt(
double x,
double y, QVector<QPair<int, double>> &out)
const;
104 bool computeWeights(
double qx,
double qy,
105 std::vector<std::pair<int, double>> &out)
const;
113 int locate(
double qx,
double qy)
const;
116 bool m_valid =
false;
118 double m_ox = 0.0, m_oy = 0.0;
119 double m_scale = 1.0;
121 std::vector<double> m_px, m_py, m_pz;
122 std::vector<int> m_seedOf;
123 std::vector<int> m_tris;
124 std::vector<int> m_nbrs;
125 std::vector<double> m_ccx, m_ccy;
128 mutable int m_lastTri = 0;
Definition naturalnbinterpolator.h:47
Variant variant() const
Definition naturalnbinterpolator.h:54
bool build(const QVector< QPointF > &pts, const QVector< double > &z, QString *err)
Triangulate the seed set. Snap-dedupes coincident points, requires >= 3 unique non-collinear points....
Definition naturalnbinterpolator.cpp:73
double interpolate(double x, double y) const
Interpolate z at (x, y). Returns NaN when the point is outside the seed convex hull or the local inse...
Definition naturalnbinterpolator.cpp:375
void setVariant(Variant v)
Definition naturalnbinterpolator.h:53
const std::vector< int > & keptSeedIndices() const
Original indices of the seeds that survived snap-dedupe, in Delaunay-vertex order....
Definition naturalnbinterpolator.h:95
bool weightsAt(double x, double y, QVector< QPair< int, double > > &out) const
Natural-neighbour weights at (x, y), keyed by ORIGINAL seed index.
Definition naturalnbinterpolator.cpp:396
bool isValid() const
Definition naturalnbinterpolator.h:66
NaturalNeighbourInterpolator()=default
Variant
Definition naturalnbinterpolator.h:49
QString err
Definition inpmeshwriter.cpp:575
QVector< QPointF > pts
Definition meshpatch.cpp:62
Definition meshcommands.h:302
QVector< int > v
pool vertex indices
Definition pslgminsize.cpp:159