src/softbody2/Objects/DRGObject.cpp
DWORD GetNumIndices( DWORD* pFaceData, DWORD dwNumFaces )
{
    DWORD dwNumIndices = 0;
    while( dwNumFaces-- > 0 )
    {
        dwNumIndices += (*pFaceData-2)*3;
        pFaceData += *pFaceData + 1;
    }

    return dwNumIndices;
}
//-----------------------------------------------------------------------------
// Name: GetNumIndices
// Desc: Get number of indices from face data
//-----------------------------------------------------------------------------
GetNumIndices
Desc: Get number of indices from face data
GetNumIndices Desc : Get number of indices from face data
DWORD GetNumIndices( DWORD* pFaceData, DWORD dwNumFaces )
{
    DWORD dwNumIndices = 0;
    while( dwNumFaces-- > 0 )
    {
        dwNumIndices += (*pFaceData-2)*3;
        pFaceData += *pFaceData + 1;
    }
    return dwNumIndices;
}
DWORD GetNumIndices ( DWORD * pFaceData , DWORD dwNumFaces ) { DWORD dwNumIndices = 0 ; while ( dwNumFaces -- > 0 ) { dwNumIndices += ( * pFaceData - 2 ) * 3 ; pFaceData += * pFaceData + 1 ; } return dwNumIndices ; }
Name: GetNumIndices
Desc: Get number of indices from face data
Name : GetNumIndices Desc : Get number of indices from face data