readd VertexInfluence whenever it's bad named and kinda useless

This commit is contained in:
Julien Valentin
2017-08-30 15:13:54 +02:00
parent 6d1193ee70
commit 8fad310ce1
7 changed files with 34 additions and 18 deletions

View File

@@ -46,15 +46,26 @@ namespace osgAnimation
typedef std::vector<BoneWeight> BoneWeightList;
typedef std::vector<unsigned int> IndexList;
//Bone influence list
class OSGANIMATION_EXPORT VertexInfluence : public IndexWeightList
{
public:
const std::string& getName() const { return _name;}
void setName(const std::string& name) { _name = name;}
class VertexInfluenceMap : public std::map<std::string, IndexWeightList> , public osg::Object
protected:
// the name is the bone to link to
std::string _name;
};
class VertexInfluenceMap : public std::map<std::string, VertexInfluence> , public osg::Object
{
public:
META_Object(osgAnimation, VertexInfluenceMap);
VertexInfluenceMap() {}
VertexInfluenceMap(const osgAnimation::VertexInfluenceMap& org, const osg::CopyOp& copyop):
std::map<std::string, IndexWeightList>(org),
std::map<std::string, VertexInfluence>(org),
osg::Object(org, copyop)
{}
///normalize per vertex weights given numvert of the attached mesh