21 template <
class DataPo
int,
class _NFilter,
int DiffType,
typename T>
24 PONCA_FITTING_DECLARE_DEFAULT_TYPES
25 PONCA_FITTING_DECLARE_DEFAULT_DER_TYPES
30 Check = Base::PROVIDES_PRIMITIVE_DERIVATIVE && Base::PROVIDES_ALGEBRAIC_SPHERE_DERIVATIVE,
31 PROVIDES_NORMAL_DERIVATIVE
37 DerDim = Base::NbDerivatives
52 using Matrix = Eigen::Matrix<Scalar, DerDim, DerDim>;
73 using MatrixArray = Eigen::Matrix<Scalar, DerDim, Dim * DerDim>;
94 PONCA_FITTING_DECLARE_INIT_ADDDER_FINALIZE
108#include "mlsSphereFitDer.hpp"
Aggregator class used to declare specialized structures using CRTP.
Extension performing derivation of the mls surface.
typename Base::ScalarArray ScalarArray
Alias to scalar derivatives array.
typename Base::VectorArray VectorArray
Alias to vector derivatives array.
Matrix m_d2SumDotPN
Sum of the dot product between relative positions and normals with second-order weight derivatives.
VectorArray dNormal() const
Returns the second derivatives of the scalar field at the evaluation point.
Matrix m_d2Uc
Second derivative of the hyper-sphere constant term
Eigen::Matrix< Scalar, DerDim, DerDim > Matrix
Static squared matrix of scalars with a size adapted to the differentiation type.
MatrixArray m_d2SumN
Sum of normal vectors with second-order weight derivatives.
MatrixArray m_d2SumP
Sum of relative positions with second-order weight derivatives.
Matrix m_d2SumDotPP
Sum of the squared relative positions with second-order weight derivatives.
Eigen::Matrix< Scalar, DerDim, Dim *DerDim > MatrixArray
Static matrix of scalars with a size adapted to the differentiation type and the dimension of the amb...
MatrixArray m_d2Ul
Second derivative of the hyper-sphere linear term
ScalarArray dPotential() const
Returns the derivatives of the scalar field at the evaluation point.
@ Dim
Dimension of the ambient space.
@ DerDim
Number of dimensions used for the differentiation.
VectorType primitiveGradient() const
Value of the normal of the primitive at the evaluation point.
typename Base::VectorType VectorType
Alias to vector type.
MlsSphereFitDer< DataPoint, _NFilter, DiffType, T > & mlsSphereFitDer()
Explicit conversion to MlsSphereFitDer , to access methods potentially hidden by heritage.
Matrix m_d2SumW
Sum of queries weight with second-order weight derivatives.
Matrix m_d2Uq
Second derivative of the hyper-sphere quadratic term.
This Source Code Form is subject to the terms of the Mozilla Public License, v.