RenderManAPI  24.0
RtBBox Class Reference

#include <RiTypesHelper.h>

Public Member Functions

 RtBBox ()
 
 RtBBox (float minx, float miny, float minz, float maxx, float maxy, float maxz)
 
 RtBBox (const RtPoint3 &_min, const RtPoint3 &_max)
 
void Expand (const float expansion)
 
float Volume () const
 
float SurfaceArea () const
 
float Diagonal () const
 
float DiagonalSq () const
 
RtPoint3 Center () const
 
void Expand (const RtPoint3 &pt)
 
void Union (const RtBBox &bbox)
 
void Intersect (const RtBBox &bbox)
 
bool Contains (const RtPoint3 &pt) const
 
bool Outside (const RtPoint3 &pt) const
 
bool Encloses (const RtBBox &bbox) const
 
bool Overlaps (const RtBBox &bbox) const
 
bool Intersects (const RtPoint3 &org, const RtVector3 &invdir, float tmax, float *dist0, float *dist1) const
 

Public Attributes

RtPoint3 min
 
RtPoint3 max
 

Constructor & Destructor Documentation

◆ RtBBox() [1/3]

RtBBox::RtBBox ( )
inline

◆ RtBBox() [2/3]

RtBBox::RtBBox ( float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz 
)
inline

References max, and min.

◆ RtBBox() [3/3]

RtBBox::RtBBox ( const RtPoint3 _min,
const RtPoint3 _max 
)
inline

References max, and min.

Member Function Documentation

◆ Center()

RtPoint3 RtBBox::Center ( ) const
inline

References max, and min.

◆ Contains()

bool RtBBox::Contains ( const RtPoint3 pt) const
inline

References max, and min.

Referenced by RixPhotonGuiding::canSample().

◆ Diagonal()

float RtBBox::Diagonal ( ) const
inline

References max, and min.

◆ DiagonalSq()

float RtBBox::DiagonalSq ( ) const
inline

References max, and min.

◆ Encloses()

bool RtBBox::Encloses ( const RtBBox bbox) const
inline

References max, and min.

◆ Expand() [1/2]

void RtBBox::Expand ( const float  expansion)
inline

References max, and min.

◆ Expand() [2/2]

void RtBBox::Expand ( const RtPoint3 pt)
inline

References max, and min.

◆ Intersect()

void RtBBox::Intersect ( const RtBBox bbox)
inline

References max, and min.

◆ Intersects()

bool RtBBox::Intersects ( const RtPoint3 org,
const RtVector3 invdir,
float  tmax,
float *  dist0,
float *  dist1 
) const
inline

References max, and min.

◆ Outside()

bool RtBBox::Outside ( const RtPoint3 pt) const
inline

References max, and min.

◆ Overlaps()

bool RtBBox::Overlaps ( const RtBBox bbox) const
inline

References max, and min.

◆ SurfaceArea()

float RtBBox::SurfaceArea ( ) const
inline

References max, and min.

◆ Union()

void RtBBox::Union ( const RtBBox bbox)
inline

References max, and min.

◆ Volume()

float RtBBox::Volume ( ) const
inline

References max, and min.

Member Data Documentation

◆ max

◆ min


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