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

BoundingBox(void)
explicit BoundingBox(LPoint3 const &min, LPoint3 const &max)

Constructs an empty box object.

Constructs a specific box object.

static TypeHandle get_class_type(void)
int get_num_planes(void) const

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

int get_num_points(void) const

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

LPlane get_plane(int n) const

Returns the nth face of the rectangular solid.

LPoint3 get_point(int n) const

Returns the nth vertex of the rectangular solid.

void set_min_max(LPoint3 const &min, LPoint3 const &max)

Sets the min and max point of the rectangular solid.

bool validate_ptr(void const *ptr)