18 #include "BoneInfluenceOnVertex.h" 22 BoneInfluenceOnVertex::BoneInfluenceOnVertex() {
23 for (
int i = 0; i < MAX_NUM_BONES; i++) {
31 for (
int i = 0; i < MAX_NUM_BONES ; i++) {
32 if(weights[i] == 0.0) {
39 throw std::invalid_argument (
"Tried to add more than maxNumBones to a mesh");
void addBoneData(int boneId, float weight)