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:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user