Blender V2.61 - r43446
Public Member Functions | Public Attributes

BoundBox Class Reference

#include <DNA_object_types.h>

List of all members.

Public Member Functions

 BoundBox (void)
 BoundBox (const float3 &min_, const float3 &max_)
void grow (const float3 &pt)
void grow (const BoundBox &bbox)
void intersect (const BoundBox &bbox)
float area (void) const
bool valid (void) const
BoundBox transformed (const Transform *tfm)

Public Attributes

float vec [8][3]
int flag
int pad
float3 min
float3 max

Detailed Description

The following illustrates the orientation of the bounding box in local space

Z Y | / |/ .-----X

2----------6 /| /| / | / | 1----------5 | | | | | | 3-------|--7 | / | / |/ |/ 0----------4

Definition at line 94 of file DNA_object_types.h.


Constructor & Destructor Documentation

BoundBox::BoundBox ( void  ) [inline]

Definition at line 38 of file util_boundbox.h.

References FLT_MAX, make_float3(), max, and min.

BoundBox::BoundBox ( const float3 min_,
const float3 max_ 
) [inline]

Definition at line 44 of file util_boundbox.h.


Member Function Documentation

float BoundBox::area ( void  ) const [inline]
void BoundBox::grow ( const float3 pt) [inline]
void BoundBox::grow ( const BoundBox bbox) [inline]

Definition at line 55 of file util_boundbox.h.

References max, and min.

void BoundBox::intersect ( const BoundBox bbox) [inline]

Definition at line 61 of file util_boundbox.h.

References max, max, min, and min.

Referenced by BVHBuild::build_node(), and BVHBuild::split_reference().

BoundBox BoundBox::transformed ( const Transform tfm) [inline]

Definition at line 83 of file util_boundbox.h.

References grow(), i, max, min, p, transform(), float3::x, float3::y, and float3::z.

Referenced by Object::compute_bounds().

bool BoundBox::valid ( void  ) const [inline]

Member Data Documentation

Definition at line 96 of file DNA_object_types.h.

Referenced by ED_view3d_boundbox_clip(), and object_boundbox_flag().

Definition at line 96 of file DNA_object_types.h.

float BoundBox::vec[8][3]

The documentation for this class was generated from the following files: