d3d9.dllGetAdaptedMesh
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXPRTEngine::GetAdaptedMesh Method


Returns a mesh with modifications resulting from adaptive spatial sampling. The returned mesh contains only positions, normals, and texture coordinates (if defined).

Syntax

HRESULT GetAdaptedMesh(      

    LPDIRECT3DDEVICE9 pDevice,     UINT *pFaceRemap,     UINT *pVertRemap,     FLOAT *pfVertWeights,     LPD3DXMESH *ppMesh );

Parameters

pDevice
[in] Pointer to an IDirect3DDevice9 device that is used to create the output mesh.
pFaceRemap
[in, out] Pointer to the original mesh face that was split to generate the current face.
pVertRemap
[in, out] Pointer to a destination array containing the three original mesh vertices that are the parents of the current vertex.
pfVertWeights
[in, out] Pointer to a destination array containing blending factors for the pVertRemap vertices.
ppMesh
[out] Pointer to the output ID3DXMesh mesh object.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the following value will be returned.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.


Remarks

pVertRemap and pfVertWeights can be used to interpolate any per-vertex value over the mesh.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.