Sources/CcgDump/CrySkinMorphBuilder.cpp
//////////////////////////////////////////////////////////////////////////
// calculates the number of rigid and smooth links
// m_numMorphRigidLinks and m_numMorphSmoothLinks

calculates the number of rigid and smooth links
m_numMorphRigidLinks and m_numMorphSmoothLinks
calculates the number of rigid and smooth links m_numMorphRigidLinks and m_numMorphSmoothLinks
void CrySkinMorphBuilder::calculateNumMorphLinks()
{
	m_numMorphRigidLinks  = 0;
	m_numMorphSmoothLinks = 0;
	for (unsigned nMorphVert = 0; nMorphVert < m_numMorphVerts; ++nMorphVert)
	{
		unsigned nGeomVert = m_pMorphVerts[nMorphVert].nVertexId;
		const CryVertexBinding* pLinks = &m_pGeometry->getLink(nGeomVert);
		if (pLinks->size() == 1)
			++m_numMorphRigidLinks;
		else
			m_numMorphSmoothLinks += (unsigned)pLinks->size();
	}
}
void CrySkinMorphBuilder :: calculateNumMorphLinks ( ) { m_numMorphRigidLinks = 0 ; m_numMorphSmoothLinks = 0 ; for ( unsigned nMorphVert = 0 ; nMorphVert < m_numMorphVerts ; ++ nMorphVert ) { unsigned nGeomVert = m_pMorphVerts [ nMorphVert ] . nVertexId ; const CryVertexBinding * pLinks = & m_pGeometry -> getLink ( nGeomVert ) ; if ( pLinks -> size ( ) == 1 ) ++ m_numMorphRigidLinks ; else m_numMorphSmoothLinks += ( unsigned ) pLinks -> size ( ) ; } }
calculates the number of rigid and smooth links
m_numMorphRigidLinks and m_numMorphSmoothLinks
calculates the number of rigid and smooth links m_numMorphRigidLinks and m_numMorphSmoothLinks