Microsoft DirectX 8.1 (Visual Basic)

D3DX8.ComputeBoundingSphereFromMesh

Computes a bounding sphere from a mesh.

object.ComputeBoundingSphereFromMesh( _ 
    MeshIn As D3DXMesh, _ 
    Center As D3DVECTOR, _ 
    RadiusArray As Single)

Parts

object
Object expression that resolves to a D3DX8 object.
MeshIn
D3DXMesh object, representing the input mesh.
Center
D3DVECTOR type, defining the coordinate center of the returned bounding sphere.
RadiusArray
Radius of the returned bounding sphere.

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.