83 typename DeduceSpanType<
const Eigen::Matrix4<T>>::type skinningTransforms);
166 typename DeduceSpanType<
const Eigen::Matrix4<T>>::type skinningTransforms,
Affine3< float > Affine3f
Affine3f getInverseSSDTransformation(const TransformationList &inverseBindPose, const SkinWeights &skin, const SkeletonState &state, const size_t index)
Computes the inverse SSD transformation for a specific vertex.
Vector3< T > getSkinnedLocatorPosition(const SkinnedLocator &locator, const Vector3< T > &restPosition, const TransformationList &inverseBindPose, const SkeletonStateT< T > &state)
Computes the world position of a skinned locator using linear blend skinning.
std::vector< Affine3f > TransformationList
One affine transform per joint, indexed by joint id.
SkeletonStateT< float > SkeletonState
void applyInverseSSD(const TransformationList &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3f > points, const SkeletonState &state, Mesh &mesh)
Applies inverse SSD to points, storing results in a mesh.
std::vector< Vector3< T > > applySSD(const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, typename DeduceSpanType< const Eigen::Matrix4< T > >::type skinningTransforms)
Applies forward SSD (linear blend skinning) to points using precomputed skinning transforms.
gsl::span< T > span
Span type alias using gsl::span (C++17 fallback).
std::vector< Eigen::Matrix4< T > > computeSkinningTransforms(typename DeduceSpanType< const JointStateT< T > >::type jointState, const TransformationListT< T > &inverseBindPose)
Computes the skinning transforms from joint states and inverse bind poses.
std::vector< Affine3< T > > TransformationListT
Scalar-templated counterpart of TransformationList.
Provides a C++17-compatible span type alias.
A utility struct that facilitates the deduction of a momentum::span type from a given type.
Represents the state of a joint with local and global transformations.
A generic mesh representation with support for vertices, faces, lines, and texture coordinates.
Represents the complete state of a skeleton.
Linear blend skinning weights for a character mesh: per-vertex joint indices and influence weights.
A locator attached to multiple joints, with its runtime position determined by blending the skinning ...