?/TD>
Microsoft DirectX 9.0

ID3DXPMesh::TrimByVertices Method


Modifies the minimum and maximum level of detail (LOD) of an ID3DXPMesh object.

Syntax

HRESULT TrimByVertices(      

    DWORD NewVerticesMin,     DWORD NewVerticessMax,     DWORD *rgiFaceRemap,     DWORD *rgiVertRemap );

Parameters

NewVerticesMin
[in] New minimum number of vertices. This parameter must be between current minimum and maximum number of vertices.
NewVerticessMax
[in] New maximum number of vertices. This parameter must be between current minimum and maximum number of vertices.
rgiFaceRemap
[out] Returns one DWORD per face that contains face remap information.
rgiVertRemap
[out] Returns one DWORD per vertex that contains vertex remap information.

Return Value

If the method succeeds, the return value is D3D_OK.

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

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

ID3DXPMesh::TrimByFaces


© 2002 Microsoft Corporation. All rights reserved.