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

BOP_BBox Class Reference

#include <BOP_BBox.h>

List of all members.

Public Member Functions

 BOP_BBox ()
 BOP_BBox (const MT_Point3 &p1, const MT_Point3 &p2, const MT_Point3 &p3)
void add (const MT_Point3 &p)
const MT_Scalar getCenterX () const
const MT_Scalar getCenterY () const
const MT_Scalar getCenterZ () const
const MT_Scalar getExtentX () const
const MT_Scalar getExtentY () const
const MT_Scalar getExtentZ () const
void compute ()
const bool intersect (const BOP_BBox &b) const

Public Attributes

MT_Scalar m_minX
MT_Scalar m_minY
MT_Scalar m_minZ
MT_Scalar m_maxX
MT_Scalar m_maxY
MT_Scalar m_maxZ
MT_Scalar m_centerX
MT_Scalar m_centerY
MT_Scalar m_centerZ
MT_Scalar m_extentX
MT_Scalar m_extentY
MT_Scalar m_extentZ

Detailed Description

Definition at line 43 of file BOP_BBox.h.


Constructor & Destructor Documentation

BOP_BBox::BOP_BBox ( )

Constructs a nwe bounding box.

Definition at line 40 of file BOP_BBox.cpp.

References m_maxX, m_maxY, m_maxZ, m_minX, m_minY, m_minZ, and MT_INFINITY().

BOP_BBox::BOP_BBox ( const MT_Point3 p1,
const MT_Point3 p2,
const MT_Point3 p3 
)

Constructs a new bounding box using three points.

Parameters:
p1first point
p2second point
p3third point

Definition at line 56 of file BOP_BBox.cpp.

References BOP_MAX, BOP_MIN, m_maxX, m_maxY, m_maxZ, m_minX, m_minY, and m_minZ.


Member Function Documentation

void BOP_BBox::add ( const MT_Point3 p) [inline]

Definition at line 62 of file BOP_BBox.h.

References BOP_MAX, BOP_MIN, m_maxX, m_maxY, m_maxZ, m_minX, m_minY, and m_minZ.

Referenced by BOP_BSPTree::addFace().

void BOP_BBox::compute ( ) [inline]

Definition at line 80 of file BOP_BBox.h.

References m_centerX, m_centerY, m_centerZ, m_extentX, m_extentY, m_extentZ, m_maxX, m_maxY, m_maxZ, m_minX, m_minY, and m_minZ.

const MT_Scalar BOP_BBox::getCenterX ( ) const [inline]

Definition at line 72 of file BOP_BBox.h.

References m_centerX.

const MT_Scalar BOP_BBox::getCenterY ( ) const [inline]

Definition at line 73 of file BOP_BBox.h.

References m_centerY.

const MT_Scalar BOP_BBox::getCenterZ ( ) const [inline]

Definition at line 74 of file BOP_BBox.h.

References m_centerZ.

const MT_Scalar BOP_BBox::getExtentX ( ) const [inline]

Definition at line 76 of file BOP_BBox.h.

References m_extentX.

const MT_Scalar BOP_BBox::getExtentY ( ) const [inline]

Definition at line 77 of file BOP_BBox.h.

References m_extentY.

const MT_Scalar BOP_BBox::getExtentZ ( ) const [inline]

Definition at line 78 of file BOP_BBox.h.

References m_extentZ.

const bool BOP_BBox::intersect ( const BOP_BBox b) const [inline]

Definition at line 89 of file BOP_BBox.h.

References BOP_comp(), m_maxX, m_maxY, m_maxZ, m_minX, m_minY, and m_minZ.

Referenced by BOP_Face2Face().


Member Data Documentation

Definition at line 52 of file BOP_BBox.h.

Referenced by compute(), and getCenterX().

Definition at line 53 of file BOP_BBox.h.

Referenced by compute(), and getCenterY().

Definition at line 54 of file BOP_BBox.h.

Referenced by compute(), and getCenterZ().

Definition at line 55 of file BOP_BBox.h.

Referenced by compute(), and getExtentX().

Definition at line 56 of file BOP_BBox.h.

Referenced by compute(), and getExtentY().

Definition at line 57 of file BOP_BBox.h.

Referenced by compute(), and getExtentZ().

Definition at line 49 of file BOP_BBox.h.

Referenced by add(), BOP_BBox(), compute(), and intersect().

Definition at line 50 of file BOP_BBox.h.

Referenced by add(), BOP_BBox(), compute(), and intersect().

Definition at line 51 of file BOP_BBox.h.

Referenced by add(), BOP_BBox(), compute(), and intersect().

Definition at line 46 of file BOP_BBox.h.

Referenced by add(), BOP_BBox(), compute(), and intersect().

Definition at line 47 of file BOP_BBox.h.

Referenced by add(), BOP_BBox(), compute(), and intersect().

Definition at line 48 of file BOP_BBox.h.

Referenced by add(), BOP_BBox(), compute(), and intersect().


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