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 get_class_type() TypeHandle
get_num_planes() int

Returns 6: the number of faces of a hexahedron.

get_num_points() int

Returns 8: the number of vertices of a hexahedron.

get_plane(n: int) LPlane

Returns the nth face of the hexahedron.

get_planes() list
get_point(n: int) LPoint3

Returns the nth vertex of the hexahedron.

get_points() list
property planes Sequence[LPlane]

Returns the nth face of the hexahedron.

property points Sequence[LPoint3]

Returns the nth vertex of the hexahedron.