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

ID3DXPRTEngine::RobustMeshRefine Method


Subdivides faces on a mesh, allowing for conservative adaptive sampling that will not eliminate features on the mesh.

Syntax

HRESULT RobustMeshRefine(      

    FLOAT MinEdgeLength,     UINT MaxSubdiv );

Parameters

MinEdgeLength
[in] Minimum face edge length that will be generated in adaptive sampling. If zero, a reasonable default value will be substituted.
MaxSubdiv
[in] Maximum level of subdivision of a face that will be used in adaptive sampling. If zero, a default value of 5 will be substituted.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be one of the following:

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
E_OUTOFMEMORYMicrosoft Direct3D could not allocate sufficient memory to complete the call.


See Also

ID3DXPRTEngine::ComputeBounceAdaptive, ID3DXPRTEngine::ComputeDirectLightingSHAdaptive


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