25 this->weights.resize(
weights.size());
28 this->weights[i++] = weight;
34 this->joints.resize(
joints.size());
36 for (
const auto& joint:
joints) {
37 this->joints[i++] = joint;
56 for (
auto& joint:
joints) {
Skinning definition for nodes.
void setVerticesJointsWeights(const vector< vector< JointWeight >> &verticesJointsWeights)
Sets up vertices joints weights.
void setupJointsByNodeIds()
Set up joints by node ids hash map.
vector< vector< JointWeight > > verticesJointsWeights
unordered_map< string, Joint * > jointsByNodeIds
void setWeights(const vector< float > &weights)
Set up weights.
void setJoints(const vector< Joint > &joints)
Set up joints.