Microsoft DirectX 8.1 (Visual Basic)

D3DXSPMesh.ReduceFaces

Reduces the number of faces in a simplification mesh.

object.ReduceFaces( _ 
    Faces As Long)

Parts

object
Object expression that resolves to a D3DXSPMesh object.
Faces
Number of faces 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 Faces. It is not always possible to reduce a mesh to the requested value due to certain restrictions.