Microsoft DirectX 8.1 (Visual Basic) |
Reduces the number of vertices in a simplification mesh.
object.ReduceVertices( _ Vertices As Long)
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.
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.