16#ifndef OSGANIMATION_VERTEX_INFLUENCE
17#define OSGANIMATION_VERTEX_INFLUENCE 1
71 class VertexGroup:
public std::pair<BoneWeightList, IndexList>
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
std::vector< VertexIndexWeight > IndexWeightList
Definition VertexInfluence:34
std::vector< BoneWeight > BoneWeightList
Definition VertexInfluence:36
std::pair< std::string, float > BoneWeight
Definition VertexInfluence:30
std::pair< unsigned int, float > VertexIndexWeight
Definition VertexInfluence:32
std::vector< unsigned int > IndexList
Definition VertexInfluence:38
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Object()
Construct an object.
Definition Object:69
Definition VertexInfluence:42
std::string _name
Definition VertexInfluence:48
const std::string & getName() const
Definition VertexInfluence:44
void setName(const std::string &name)
Definition VertexInfluence:45
Definition VertexInfluence:52
void cullInfluenceCountPerVertex(unsigned int maxnumbonepervertex, float minweight=0, bool renormalize=true)
remove weakest influences in order to fit targeted numbonepervertex
VertexInfluenceMap()
Definition VertexInfluence:56
VertexInfluenceMap(const osgAnimation::VertexInfluenceMap &org, const osg::CopyOp ©op)
Definition VertexInfluence:57
void removeUnexpressedBones(Skeleton &skel) const
void computeMinimalVertexGroupList(std::vector< VertexGroup > &uniqVertexGroupList, unsigned int numvert) const
compute the minimal VertexGroup Set in which vertices shares the same influence set
void normalize(unsigned int numvert)
normalize per vertex weights given numvert of the attached mesh
META_Object(osgAnimation, VertexInfluenceMap)
void computePerVertexInfluenceList(std::vector< BoneWeightList > &perVertexInfluenceList, unsigned int numvert) const
map a set of boneinfluence to a list of vertex indices sharing this set
Definition VertexInfluence:72
IndexList & vertIDs()
Definition VertexInfluence:76
const BoneWeightList & getBoneWeights() const
Definition VertexInfluence:74
void setBoneWeights(BoneWeightList &o)
Definition VertexInfluence:75
#define OSGANIMATION_EXPORT
Definition Export:40