Microsoft DirectX 8.1 (Visual Basic) |
Reduces the number of faces in a simplification mesh.
object.ReduceFaces( _ Faces 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 Faces. It is not always possible to reduce a mesh to the requested value due to certain restrictions.