Public Member Functions | Properties

CC3NodeTighteningBoundingVolumeSequence Class Reference

A composite bounding volume that contains other bounding volumes. More...

#import <CC3BoundingVolumes.h>

Inheritance diagram for CC3NodeTighteningBoundingVolumeSequence:
CC3NodeBoundingVolume

List of all members.

Public Member Functions

(void) - addBoundingVolume:

Properties

NSMutableArray * boundingVolumes

Detailed Description

This class tests whether the node intesects the frustum by testing each of the contained bounding volumes against the frustum, in the order in which the contained bounding volumes were added to an instance of this class.

This class indicates that the node is outside the frustum as soon as one of the contained bounding volumes indicates as much. Otherwise, if a contained bounding volume indicates that the node is within the frustum, the node is tested against the next contained bounding volume, and so on.

The contained bounding volumes should be added in increasing order of computational complexity (but presumably lower accuracy), allowing a rapid indication of nodes that are easily determined to be well outside the frustum, and only proceeding to the more intensive, but presumably more accurate tests, if an early rejection cannot be determined.

For example, a typical bounding volume sequence might be to first test against a spherical bounding volume, followed by a rectangular bounding-box bounding volume.


Member Function Documentation

- (void) addBoundingVolume: (CC3NodeBoundingVolume *)  aBoundingVolume

Adds the specified bounding volume to the end of the array of contained bounding volumes.


Property Documentation

- (NSMutableArray *) boundingVolumes [read, assign]

The array of contained bounding volumes.

The contained bounding volumes will be traversed in the order they appear in the array.


The documentation for this class was generated from the following file: