Microsoft DirectX 8.1 (Visual Basic)

D3DXPMesh.GetMaxFaces

Retrieves the maximum number of faces that the progressive mesh supports.

object.GetMaxFaces() As Long

Parts

object
Object expression that resolves to a D3DXPMesh object.

Return Values

Returns the maximum number of faces supported by the progressive mesh.

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.