![]() |
![]() |
![]() |
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_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. E_OUTOFMEMORY Microsoft Direct3D could not allocate sufficient memory to complete the call.
See Also
ID3DXPRTEngine::ComputeBounceAdaptive, ID3DXPRTEngine::ComputeDirectLightingSHAdaptive