C3DMesh::RecalcBoundingBox

Top  Previous  Next

Syntax:

 

RecalcBoundingBox()

 

Purpose:

Recalculates the minimum bounding box of a mesh.

 

Parameters:

None.

 

Returned value(s):

None.

 

Application:

mesh1.RecalcBoundingBox()

 

Class Hierarchy

C3DObject

-------C3DMesh

 

Additional Info:

The bounding box of a mesh is used for visibility determination in the current viewing frustum.  The method should be called after creating or modifying the vertex buffer of a mesh.

 

The bounding box is automatically calculated when a mesh is loaded and transformed.