panda3d.core.BoundingBox

from panda3d.core import BoundingBox
class BoundingBox

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__() → None

Constructs an empty box object.

__init__(min: LPoint3, max: LPoint3) → None

Constructs a specific box object.

static getClassType() → TypeHandle
Return type

TypeHandle

getNumPlanes() → int

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

getNumPoints() → int

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

getPlane(n: int) → LPlane

Returns the nth face of the rectangular solid.

Return type

LPlane

getPlanes() → list
getPoint(n: int) → LPoint3

Returns the nth vertex of the rectangular solid.

Return type

LPoint3

getPoints() → list
operatorNew(size: size_t) → None
property planes

Returns the nth face of the rectangular solid.

Return type

Sequence[LPlane]

property points

Returns the nth vertex of the rectangular solid.

Return type

Sequence[LPoint3]

setMinMax(min: LPoint3, max: LPoint3) → None

Sets the min and max point of the rectangular solid.