panda3d.core.BoundingHexahedron

from panda3d.core import BoundingHexahedron
class BoundingHexahedron

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) → None
__init__(fll: LPoint3, flr: LPoint3, fur: LPoint3, ful: LPoint3, nll: LPoint3, nlr: LPoint3, nur: LPoint3, nul: LPoint3) → None
getNumPoints() → int

Returns 8: the number of vertices of a hexahedron.

getPoint(n: int) → LPoint3

Returns the nth vertex of the hexahedron.

Return type

LPoint3

getNumPlanes() → int

Returns 6: the number of faces of a hexahedron.

getPlane(n: int) → LPlane

Returns the nth face of the hexahedron.

Return type

LPlane

static getClassType() → TypeHandle
Return type

TypeHandle

getPoints() → list
getPlanes() → list
property points

Returns the nth vertex of the hexahedron.

Return type

Sequence[LPoint3]

property planes

Returns the nth face of the hexahedron.

Return type

Sequence[LPlane]