ID3DXPRTCompBuffer::ExtractBasis

Extracts the mean and principal component analysis (PCA) basis vectors for a given cluster from an ID3DXPRTCompBuffer compressed data buffer.

HRESULT ExtractBasis(
  UINT Cluster,
  FLOAT * pClusterBasis
);

Parameters

Cluster
[in] Cluster for which the basis will be extracted.
pClusterBasis
[in, out] Pointer to an array of basis vector data for Cluster. The size of the FLOAT data stored will be: (1 + Number of PCA vectors per cluster) * (Number of coefficients) * (Number of color channels)

Return Values

If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned.

D3DERR_INVALIDCALL

Requirements

Header: Declared in D3dx9mesh.h.