37 #ifndef quadraticLinearFitPolynomial_H 38 #define quadraticLinearFitPolynomial_H 77 coeffs[curIdx++] = weight;
78 coeffs[curIdx++] = weight*d.
x();
79 coeffs[curIdx++] = weight*
sqr(d.
x());
83 coeffs[curIdx++] = weight*d.
y();
84 coeffs[curIdx++] = weight*d.
x()*d.
y();
88 coeffs[curIdx++] = weight*d.
z();
89 coeffs[curIdx++] = weight*d.
x()*d.
z();
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static label nTerms(const direction dim)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Quadratic/linear polynomial for interpolation fitting: quadratic normal to the face, linear in the plane of the face for consistency with 2nd-order Gauss.
static void addCoeffs(scalar *coeffs, const vector &d, const scalar weight, const direction dim)