# panda3d.core.IntersectionBoundingVolume¶

from panda3d.core import IntersectionBoundingVolume

class IntersectionBoundingVolume

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.

Inheritance diagram

__init__() → None

Constructs an empty intersection.

operatorNew(size: size_t) → None
getNumComponents() → int

Returns the number of components in the intersection.

getComponent(n: int) → GeometricBoundingVolume

Returns the nth component in the intersection.

Return type

GeometricBoundingVolume

clearComponents() → None

Removes all components from the volume.

addComponent(component: GeometricBoundingVolume) → None

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 getComponent(); certain optimizations may prevent the component from being added, or have other unexpected effects on the total set of components.

static getClassType() → TypeHandle
Return type

TypeHandle

getComponents() → list
property components

Returns the nth component in the intersection.

Return type