Sources/CcgDump/CrySkinBase.cpp
// transforms the given smooth point into the destination with the matrix

transforms the given smooth point into the destination with the matrix
transforms the given smooth point into the destination with the matrix
void CrySkinBase::transformWPoint (Vec3d& pDest, const Matrix44& matBone, const Vertex& rVtx)
{
  pDest.x = ((matBone[0][0] * rVtx.pt.x) + (matBone[1][0] * rVtx.pt.y) + (matBone[2][0] * rVtx.pt.z) + matBone[3][0]) * rVtx.fWeight;
  pDest.y = ((matBone[0][1] * rVtx.pt.x) + (matBone[1][1] * rVtx.pt.y) + (matBone[2][1] * rVtx.pt.z) + matBone[3][1]) * rVtx.fWeight;
  pDest.z = ((matBone[0][2] * rVtx.pt.x) + (matBone[1][2] * rVtx.pt.y) + (matBone[2][2] * rVtx.pt.z) + matBone[3][2]) * rVtx.fWeight;
}
void CrySkinBase :: transformWPoint ( Vec3d & pDest , const Matrix44 & matBone , const Vertex & rVtx ) { pDest . x = ( ( matBone [ 0 ] [ 0 ] * rVtx . pt . x ) + ( matBone [ 1 ] [ 0 ] * rVtx . pt . y ) + ( matBone [ 2 ] [ 0 ] * rVtx . pt . z ) + matBone [ 3 ] [ 0 ] ) * rVtx . fWeight ; pDest . y = ( ( matBone [ 0 ] [ 1 ] * rVtx . pt . x ) + ( matBone [ 1 ] [ 1 ] * rVtx . pt . y ) + ( matBone [ 2 ] [ 1 ] * rVtx . pt . z ) + matBone [ 3 ] [ 1 ] ) * rVtx . fWeight ; pDest . z = ( ( matBone [ 0 ] [ 2 ] * rVtx . pt . x ) + ( matBone [ 1 ] [ 2 ] * rVtx . pt . y ) + ( matBone [ 2 ] [ 2 ] * rVtx . pt . z ) + matBone [ 3 ] [ 2 ] ) * rVtx . fWeight ; }
transforms the given smooth point into the destination with the matrix
transforms the given smooth point into the destination with the matrix
//pDest = matBone.TransformPoint(rVtx) * rVtx.fWeight;
