add 2 method to VertexInfluenceMap:

normalize and cullInfluenceCountPerVertex
This commit is contained in:
Julien Valentin
2017-08-28 18:42:22 +02:00
parent 5123614f89
commit 350756e738
2 changed files with 88 additions and 0 deletions

View File

@@ -65,6 +65,12 @@ namespace osgAnimation
std::map<std::string, BoneInfluenceList>(org),
osg::Object(org, copyop)
{}
///normalize per vertex weights given numvert of the attached mesh
void normalize(unsigned int numvert);
///remove weakest influences in order to fit targetted numbonepervertex
void cullInfluenceCountPerVertex(unsigned int maxnumbonepervertex, float minweight=0, bool renormalize=true);
};
}