ID3DXPatchMesh::Tessellate

Performs uniform tessellation based on the tessellation level.

HRESULT Tessellate(
  FLOAT fTessLevel,
  LPD3DXMESH pMesh
);

Parameters

fTessLevel
[in] Tessellation level. This is the number of vertices introduced between existing vertices. The range of this float parameter is 0 < fTessLevel <= 32.
pMesh
[in] Resulting tessellated mesh. See ID3DXMesh.

Return Values

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

Remarks

This function will perform more efficiently if the patch mesh has been optimized using ID3DXPatchMesh::Optimize.

Requirements

Header: Declared in D3dx9mesh.h.