32 for (
size_t i = 0; i <
jointMap.size(); i++) {
35 coefficients.segment<4>(i * 4) = (base * state.
jointState.at(jid).rotation()).coeffs();
39 std::vector<Vector3f> output(
baseShape.size() / 3);
#define MT_CHECK(condition,...)
Runtime check macros with two interchangeable backends:
Quaternion< float > Quaternionf
SkeletonStateT< float > SkeletonState
VectorX< float > VectorXf
size_t baseJoint
Index of the joint used as reference for computing relative rotations.
MatrixXf shapeVectors
Shape deformation vectors for each quaternion component of each joint.
std::vector< Vector3f > compute(const SkeletonState &state) const
Computes the deformed shape vertices for the given skeleton pose.
VectorXf baseShape
Base shape vertices stored as a flat vector [x1,y1,z1,x2,y2,z2,...].
std::vector< size_t > jointMap
Indices of joints whose rotations drive the shape deformation.
Quaternionf baseRot
Base rotation used as reference for computing rotation differences.
JointStateListT< T > jointState
Computed joint states for all joints in the skeleton.