ID3DXPRTEngine::RobustMeshRefine

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

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 Values

If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Requirements

Header: Declared in D3dx9mesh.h.

See Also

ID3DXPRTEngine::ComputeBounceAdaptive, ID3DXPRTEngine::ComputeDirectLightingSHAdaptive