UnionBoundingVolume
from panda3d.core import UnionBoundingVolume
- class UnionBoundingVolume
Bases:
GeometricBoundingVolume
This special bounding volume is the union of all of its constituent bounding volumes.
A point is defined to be within a UnionBoundingVolume if it is within any one or more of its component bounding volumes.
Inheritance diagram
- __init__(*args, **kwargs)
- addComponent()
C++ Interface: add_component(const UnionBoundingVolume self, const GeometricBoundingVolume 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.
*/
- add_component()
C++ Interface: add_component(const UnionBoundingVolume self, const GeometricBoundingVolume 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.
*/
- clearComponents()
C++ Interface: clear_components(const UnionBoundingVolume self)
- /**
Removes all components from the volume.
*/
- clear_components()
C++ Interface: clear_components(const UnionBoundingVolume self)
- /**
Removes all components from the volume.
*/
- components
- filterIntersection()
C++ Interface: filter_intersection(const UnionBoundingVolume self, const BoundingVolume volume)
- /**
Removes from the union any components that have no intersection with the
indicated volume.
*/
- filter_intersection()
C++ Interface: filter_intersection(const UnionBoundingVolume self, const BoundingVolume volume)
- /**
Removes from the union any components that have no intersection with the
indicated volume.
*/
- getClassType()
C++ Interface: get_class_type()
- getComponent()
C++ Interface: get_component(UnionBoundingVolume self, int n)
- /**
Returns the nth component in the union.
*/
- getComponents()
- getNumComponents()
C++ Interface: get_num_components(UnionBoundingVolume self)
- /**
Returns the number of components in the union.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_component()
C++ Interface: get_component(UnionBoundingVolume self, int n)
- /**
Returns the nth component in the union.
*/
- get_components()