BoundingBox

from panda3d.core import BoundingBox
class BoundingBox

Bases:

Bases: FiniteBoundingVolume

An axis-aligned bounding box; that is, a minimum and maximum coordinate triple.

This box is always axis-aligned. If you need a more general bounding box, try BoundingHexahedron.

Inheritance diagram

Inheritance diagram of BoundingBox

__init__()

Constructs an empty box object.

__init__(min: LPoint3, max: LPoint3)

Constructs a specific box object.

static get_class_type() TypeHandle
get_num_planes() int

Returns 6: the number of faces of a rectangular solid.

get_num_points() int

Returns 8: the number of vertices of a rectangular solid.

get_plane(n: int) LPlane

Returns the nth face of the rectangular solid.

get_planes() list
get_point(n: int) LPoint3

Returns the nth vertex of the rectangular solid.

get_points() list
operator_new(size: int)
property planes Sequence[LPlane]

Returns the nth face of the rectangular solid.

property points Sequence[LPoint3]

Returns the nth vertex of the rectangular solid.

set_min_max(min: LPoint3, max: LPoint3)

Sets the min and max point of the rectangular solid.