ID3DXPMesh::TrimByVertices

Bb174115.XDK_CHM_BANNER_left(en-us,VS.85).jpg Bb174115.XDK_CHM_BANNER_right(en-us,VS.85).jpg

NOTE: The ID3DXPMesh and ID3DXSPMesh interfaces are now obsolete and will be removed in a future release.

ID3DXPMesh::TrimByVertices

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

  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 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.

Requirements

Header: Declared in D3DX9Mesh.h.

Library: Use D3dx9.lib.

See Also

ID3DXPMesh::TrimByFaces