Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions
IntersectionBoundingVolume Class Reference

This special bounding volume is the intersection of all of its constituent bounding volumes. More...

Inheritance diagram for IntersectionBoundingVolume:
GeometricBoundingVolume BoundingVolume TypedReferenceCount TypedObject ReferenceCount

List of all members.

Public Member Functions

 IntersectionBoundingVolume ()
 Constructs an empty intersection.
 addComponent (GeometricBoundingVolume const component)
 Adds a new component to the volume.
 clearComponents ()
 Removes all components from the volume.
GeometricBoundingVolume const getComponent (int n)
 Returns the nth component in the intersection.
list getComponents ()
int getNumComponents ()
 Returns the number of components in the intersection.
 operator new (unsigned int size)

Static Public Member Functions

static TypeHandle getClassType ()

Detailed Description

This special bounding volume is the intersection of all of its constituent bounding volumes.

A point is defined to be within an IntersectionBoundingVolume if it is within all of its component bounding volumes.


Constructor & Destructor Documentation

Constructs an empty intersection.


Member Function Documentation

addComponent ( GeometricBoundingVolume const  component)

Adds a new component to the volume.

This does not necessarily increase the total number of components by one, and you may or may not be able to find this component in the volume by a subsequent call to get_component(); certain optimizations may prevent the component from being added, or have other unexpected effects on the total set of components.

Removes all components from the volume.

static TypeHandle getClassType ( ) [static]

Reimplemented from GeometricBoundingVolume.

Returns the nth component in the intersection.

list getComponents ( )

Returns the number of components in the intersection.

operator new ( unsigned int  size)
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties