BoundingHexahedron

from panda3d.core import BoundingHexahedron
class BoundingHexahedron

Bases:

Bases: FiniteBoundingVolume

This defines a bounding convex hexahedron. It is typically used to represent a frustum, but may represent any enclosing convex hexahedron, including simple boxes. However, if all you want is an axis-aligned bounding box, you may be better off with the simpler BoundingBox class.

Inheritance diagram

Inheritance diagram of BoundingHexahedron

__init__(frustum: LFrustum, is_ortho: bool, cs: CoordinateSystem)
__init__(fll: LPoint3, flr: LPoint3, fur: LPoint3, ful: LPoint3, nll: LPoint3, nlr: LPoint3, nur: LPoint3, nul: LPoint3)
static getClassType() TypeHandle
getNumPlanes() int

Returns 6: the number of faces of a hexahedron.

getNumPoints() int

Returns 8: the number of vertices of a hexahedron.

getPlane(n: int) LPlane

Returns the nth face of the hexahedron.

getPlanes() list
getPoint(n: int) LPoint3

Returns the nth vertex of the hexahedron.

getPoints() list
property planes Sequence[LPlane]

Returns the nth face of the hexahedron.

property points Sequence[LPoint3]

Returns the nth vertex of the hexahedron.