# BoundingBox¶

from panda3d.core import BoundingBox

class BoundingBox

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

__init__()

Constructs an empty box object.

__init__(min: LPoint3, max: LPoint3)

Constructs a specific box object.

static getClassType()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.

getPlanes()list
getPoint(n: int)LPoint3

Returns the nth vertex of the rectangular solid.

getPoints()list
operatorNew(size: int)None
property planes → Sequence[LPlane]

Returns the nth face of the rectangular solid.

property points → Sequence[LPoint3]

Returns the nth vertex of the rectangular solid.

setMinMax(min: LPoint3, max: LPoint3)None

Sets the min and max point of the rectangular solid.