ID3DXPRTEngine::RobustMeshRefine method

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

Syntax

HRESULT RobustMeshRefine(
  [in] FLOAT MinEdgeLength,
  [in] UINT  MaxSubdiv
);

Parameters

MinEdgeLength [in]

Type: FLOAT

Minimum face edge length that will be generated in adaptive sampling. If zero, a reasonable default value will be substituted.

MaxSubdiv [in]

Type: UINT

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

Type: HRESULT

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

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXPRTEngine

ID3DXPRTEngine::ComputeBounceAdaptive

ID3DXPRTEngine::ComputeDirectLightingSHAdaptive