27 const std::string& n =
"")
47 const T& lossC = T(1))
58 const T& lossC = T(1))
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))
void evalFunction(size_t constrIndex, const JointStateT< T > &state, Vector3< T > &f, std::array< Vector3< T >, 1 > &v, std::array< Matrix3< T >, 1 > &dfdv) const final
PositionErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
Constructor.
static constexpr float kLegacyWeight
PositionErrorFunctionT(const Character &character, const T &lossAlpha=GeneralizedLossT< T >::kL2, const T &lossC=T(1))
A convenience api where character contains info of the skeleton and parameter transform.
SkeletonT< float > Skeleton
Eigen::Matrix< T, 3, 3 > Matrix3
ParameterTransformT< float > ParameterTransform
A character model with skeletal structure, mesh, and optional components.
ConstraintData(size_t pIndex, float w, const std::string &n="")
Represents the state of a joint with local and global transformations.
3D position constraint data
PositionDataT(const Vector3< T > &inOffset, const Vector3< T > &inTarget, size_t pIndex, float w, const std::string &n="")