31 const std::string& n = {})
48 const T& lossC = T(1))
54 const T& lossC = T(1))
57 character.parameterTransform,
71 std::array<Eigen::Matrix<T, 1, 3>, 2>& dfdv)
const final;
static constexpr T kL2
Special-case alpha values that are either at a singularity in the general formula or simplify to a cl...
JointErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
NormalErrorFunctionT(const Character &character, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
static constexpr float kLegacyWeight
void evalFunction(size_t constrIndex, const JointStateT< T > &state, Vector< T, 1 > &f, std::array< Vector3< T >, 2 > &v, std::array< Eigen::Matrix< T, 1, 3 >, 2 > &dfdv) const final
NormalErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
SkeletonT< float > Skeleton
ParameterTransformT< float > ParameterTransform
Eigen::Matrix< T, Dim, 1, Options > Vector
Column vector alias (an Nx1 Eigen matrix).
A character model with skeletal structure, mesh, and optional components.
Base structure of constraint data for joint-based error functions.
ConstraintData(size_t pIndex, float w, const std::string &n="")
Represents the state of a joint with local and global transformations.
Normal constraint data: data needed to compute the point-to-plane distance for "data-to-template" in ...
NormalDataT(const Vector3< T > &inLocalPt, const Vector3< T > &inLocalNorm, const Vector3< T > &inTargetPt, size_t pIndex, float w, const std::string &n={})
Vector3< float > localNormal
Vector3< float > localPoint
Vector3< float > globalPoint