Sources/CcgDump/CrySkinMorphBuilder.cpp
//////////////////////////////////////////////////////////////////////////
// for the given morph target(source) finds and initializes the
// m_nFirstAffectingBone and m_numAffectingBones

for the given morph target(source) finds and initializes the
m_nFirstAffectingBone and m_numAffectingBones
for the given morph target ( source ) finds and initializes the m_nFirstAffectingBone and m_numAffectingBones
void CrySkinMorphBuilder::findAffectingBoneRange()
{
	const CryVertexBinding* pLinks = &m_pGeometry->getLink(m_pMorphVerts[0].nVertexId);
	m_nFirstAffectingBone = pLinks->minBoneID();
	m_numAffectingBones = pLinks->maxBoneID()+1;
	for (unsigned nMorphVert = 1; nMorphVert < m_numMorphVerts; ++nMorphVert)
	{
		unsigned nGeomVert = m_pMorphVerts[nMorphVert].nVertexId;
		pLinks = &m_pGeometry->getLink(nGeomVert);
		m_nFirstAffectingBone = min (m_nFirstAffectingBone, pLinks->minBoneID());
		m_numAffectingBones = max(m_numAffectingBones, pLinks->maxBoneID()+1);
	}
	assert (m_nFirstAffectingBone < m_numAffectingBones);
	assert (m_numAffectingBones <= m_numBones);
}
void CrySkinMorphBuilder :: findAffectingBoneRange ( ) { const CryVertexBinding * pLinks = & m_pGeometry -> getLink ( m_pMorphVerts [ 0 ] . nVertexId ) ; m_nFirstAffectingBone = pLinks -> minBoneID ( ) ; m_numAffectingBones = pLinks -> maxBoneID ( ) + 1 ; for ( unsigned nMorphVert = 1 ; nMorphVert < m_numMorphVerts ; ++ nMorphVert ) { unsigned nGeomVert = m_pMorphVerts [ nMorphVert ] . nVertexId ; pLinks = & m_pGeometry -> getLink ( nGeomVert ) ; m_nFirstAffectingBone = min ( m_nFirstAffectingBone , pLinks -> minBoneID ( ) ) ; m_numAffectingBones = max ( m_numAffectingBones , pLinks -> maxBoneID ( ) + 1 ) ; } assert ( m_nFirstAffectingBone < m_numAffectingBones ) ; assert ( m_numAffectingBones <= m_numBones ) ; }
for the given morph target(source) finds and initializes the
m_nFirstAffectingBone and m_numAffectingBones
for the given morph target ( source ) finds and initializes the m_nFirstAffectingBone and m_numAffectingBones
// init - find the first vertex binding info
 // find all the other vertex binding info and init the bone range
