Microsoft DirectX 8.1 (Visual Basic)

D3DXSPMesh.ReduceVertices

Reduces the number of vertices in a simplification mesh.

object.ReduceVertices( _ 
    Vertices As Long)

Parts

object
Object expression that resolves to a D3DXSPMesh object.
Vertices
Number of vertices to which to reduce the primitive count.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Remarks

This method performs edge collapses to reduce the number of primitives to the value specified in Vertices. It is not always possible to reduce a mesh to the requested value due to certain restrictions.