Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
BvhTree Class Reference
Collaboration diagram for BvhTree:
Collaboration graph
[legend]

Public Member Functions

BvhNodeAllocNode ()
 
void Refresh (const std::list< Geom * > &m_geoms)
 
 BvhTree (const std::list< Geom * > &geoms)
 
 ~BvhTree ()
 
void CollideGeom (Geom *, const Aabb &, int minMailboxValue, void(*callback)(CollisionContact *))
 

Public Attributes

Geom ** m_geoms
 
BvhNodem_root
 
BvhNodem_nodesAlloc
 
int m_nodesAllocPos
 
int m_nodesAllocMax
 

Static Public Attributes

static constexpr int MAX_TREE_HEIGHT = 38
 

Constructor & Destructor Documentation

◆ BvhTree()

BvhTree::BvhTree ( const std::list< Geom * > &  geoms)
Here is the call graph for this function:

◆ ~BvhTree()

BvhTree::~BvhTree ( )
inline

Member Function Documentation

◆ AllocNode()

BvhNode * BvhTree::AllocNode ( )
inline

◆ CollideGeom()

void BvhTree::CollideGeom ( Geom g,
const Aabb geomAabb,
int  minMailboxValue,
void(*)(CollisionContact *)  callback 
)
Here is the call graph for this function:

◆ Refresh()

void BvhTree::Refresh ( const std::list< Geom * > &  m_geoms)
Here is the call graph for this function:

Member Data Documentation

◆ m_geoms

Geom** BvhTree::m_geoms

◆ m_nodesAlloc

BvhNode* BvhTree::m_nodesAlloc

◆ m_nodesAllocMax

int BvhTree::m_nodesAllocMax

◆ m_nodesAllocPos

int BvhTree::m_nodesAllocPos

◆ m_root

BvhNode* BvhTree::m_root

◆ MAX_TREE_HEIGHT

constexpr int BvhTree::MAX_TREE_HEIGHT = 38
staticconstexpr

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