add void InfluenceMap::removeUnexpressedBones(Skeleton &skel) const;

a bit experimental but work well without further process on my test set
This commit is contained in:
Julien Valentin
2017-09-01 17:48:28 +02:00
parent 0d02dfbbbd
commit 78dd81a8b4
2 changed files with 132 additions and 20 deletions

View File

@@ -24,6 +24,8 @@
namespace osgAnimation
{
class Skeleton;
// first is bonename, and second the weight
typedef std::pair<std::string, float> BoneWeight;
// first is vertex index, and second the weight
@@ -77,6 +79,9 @@ namespace osgAnimation
/// compute the minimal VertexGroup Set in which vertices shares the same influence set
void computeMinimalVertexGroupList(std::vector<VertexGroup>&uniqVertexGroupList, unsigned int numvert)const;
//Experimental removal of unexpressed bone from the skeleton
void removeUnexpressedBones(Skeleton &skel) const;
};
}