panda3d.core.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.

operatorNew(size: size_t) → None
getNumPoints() → int

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

getPoint(n: int) → LPoint3

Returns the nth vertex of the rectangular solid.

Return type

LPoint3

getNumPlanes() → int

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

getPlane(n: int) → LPlane

Returns the nth face of the rectangular solid.

Return type

LPlane

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

Sets the min and max point of the rectangular solid.

static getClassType() → TypeHandle
Return type

TypeHandle

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

Returns the nth vertex of the rectangular solid.

Return type

Sequence[LPoint3]

property planes

Returns the nth face of the rectangular solid.

Return type

Sequence[LPlane]