Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
SingleBVHTree Class Reference

#include <BVHTree.h>

Classes

struct  Node
 

Public Member Functions

 SingleBVHTree ()
 
void Clear ()
 
void Build (const AABBd &bounds, AABBd *objAabbs, uint32_t numObjs)
 
const NodeGetNode (uint32_t index) const
 
void ComputeOverlap (uint32_t objId, const AABBd &objAabb, std::vector< std::pair< uint32_t, uint32_t > > &out_isect) const
 
void TraceRay (const vector3d &start, const vector3d &inv_dir, double len, std::vector< uint32_t > &out_isect) const
 
size_t GetNumNodes () const
 
uint32_t GetHeight () const
 
double CalculateSAH () const
 

Constructor & Destructor Documentation

◆ SingleBVHTree()

SingleBVHTree::SingleBVHTree ( )
Here is the call graph for this function:

Member Function Documentation

◆ Build()

void SingleBVHTree::Build ( const AABBd bounds,
AABBd objAabbs,
uint32_t  numObjs 
)

◆ CalculateSAH()

double SingleBVHTree::CalculateSAH ( ) const
Here is the call graph for this function:

◆ Clear()

void SingleBVHTree::Clear ( )
Here is the call graph for this function:

◆ ComputeOverlap()

void SingleBVHTree::ComputeOverlap ( uint32_t  objId,
const AABBd objAabb,
std::vector< std::pair< uint32_t, uint32_t > > &  out_isect 
) const
Here is the call graph for this function:

◆ GetHeight()

uint32_t SingleBVHTree::GetHeight ( ) const
inline

◆ GetNode()

const Node * SingleBVHTree::GetNode ( uint32_t  index) const
inline

◆ GetNumNodes()

size_t SingleBVHTree::GetNumNodes ( ) const
inline

◆ TraceRay()

void SingleBVHTree::TraceRay ( const vector3d start,
const vector3d inv_dir,
double  len,
std::vector< uint32_t > &  out_isect 
) const
Here is the call graph for this function:

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