RenderMan API  23.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
 

Detailed Description

Definition at line 326 of file RiTypesHelper.h.

Constructor & Destructor Documentation

◆ RtBBox() [1/3]

RtBBox::RtBBox ( )
inline

Definition at line 331 of file RiTypesHelper.h.

◆ RtBBox() [2/3]

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

Definition at line 332 of file RiTypesHelper.h.

◆ RtBBox() [3/3]

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

Definition at line 338 of file RiTypesHelper.h.

Member Function Documentation

◆ Center()

RtPoint3 RtBBox::Center ( ) const
inline

Definition at line 390 of file RiTypesHelper.h.

◆ Contains()

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

Definition at line 429 of file RiTypesHelper.h.

◆ Diagonal()

float RtBBox::Diagonal ( ) const
inline

Definition at line 379 of file RiTypesHelper.h.

◆ DiagonalSq()

float RtBBox::DiagonalSq ( ) const
inline

Definition at line 385 of file RiTypesHelper.h.

◆ Encloses()

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

Definition at line 448 of file RiTypesHelper.h.

◆ Expand() [1/2]

void RtBBox::Expand ( const float  expansion)
inline

Definition at line 344 of file RiTypesHelper.h.

◆ Expand() [2/2]

void RtBBox::Expand ( const RtPoint3 pt)
inline

Definition at line 396 of file RiTypesHelper.h.

◆ Intersect()

void RtBBox::Intersect ( const RtBBox bbox)
inline

Definition at line 418 of file RiTypesHelper.h.

◆ Intersects()

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

Definition at line 465 of file RiTypesHelper.h.

◆ Outside()

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

Definition at line 440 of file RiTypesHelper.h.

◆ Overlaps()

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

Definition at line 455 of file RiTypesHelper.h.

◆ SurfaceArea()

float RtBBox::SurfaceArea ( ) const
inline

Definition at line 372 of file RiTypesHelper.h.

◆ Union()

void RtBBox::Union ( const RtBBox bbox)
inline

Definition at line 407 of file RiTypesHelper.h.

◆ Volume()

float RtBBox::Volume ( ) const
inline

Definition at line 364 of file RiTypesHelper.h.

Member Data Documentation

◆ max

RtPoint3 RtBBox::max

Definition at line 329 of file RiTypesHelper.h.

◆ min

RtPoint3 RtBBox::min

Definition at line 329 of file RiTypesHelper.h.


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