Bullet Collision Detection & Physics Library
|
Basic Box tree structure. More...
#include <btGImpactBvh.h>
Public Member Functions | |
btBvhTree () | |
void | build_tree (GIM_BVH_DATA_ARRAY &primitive_boxes) |
prototype functions for box tree management More... | |
void | clearNodes () |
int | getNodeCount () const |
node count More... | |
bool | isLeafNode (int nodeindex) const |
tells if the node is a leaf More... | |
int | getNodeData (int nodeindex) const |
void | getNodeBound (int nodeindex, btAABB &bound) const |
void | setNodeBound (int nodeindex, const btAABB &bound) |
int | getLeftNode (int nodeindex) const |
int | getRightNode (int nodeindex) const |
int | getEscapeNodeIndex (int nodeindex) const |
const GIM_BVH_TREE_NODE * | get_node_pointer (int index=0) const |
Protected Member Functions | |
int | _sort_and_calc_splitting_index (GIM_BVH_DATA_ARRAY &primitive_boxes, int startIndex, int endIndex, int splitAxis) |
int | _calc_splitting_axis (GIM_BVH_DATA_ARRAY &primitive_boxes, int startIndex, int endIndex) |
void | _build_sub_tree (GIM_BVH_DATA_ARRAY &primitive_boxes, int startIndex, int endIndex) |
Protected Attributes | |
int | m_num_nodes |
GIM_BVH_TREE_NODE_ARRAY | m_node_array |
Basic Box tree structure.
Definition at line 143 of file btGImpactBvh.h.
|
inline |
Definition at line 157 of file btGImpactBvh.h.
|
protected |
Definition at line 160 of file btGImpactBvh.cpp.
|
protected |
Definition at line 67 of file btGImpactBvh.cpp.
|
protected |
Definition at line 99 of file btGImpactBvh.cpp.
void btBvhTree::build_tree | ( | GIM_BVH_DATA_ARRAY & | primitive_boxes | ) |
prototype functions for box tree management
stackless build tree
Definition at line 212 of file btGImpactBvh.cpp.
|
inline |
Definition at line 166 of file btGImpactBvh.h.
|
inline |
Definition at line 215 of file btGImpactBvh.h.
|
inline |
Definition at line 210 of file btGImpactBvh.h.
|
inline |
Definition at line 199 of file btGImpactBvh.h.
|
inline |
Definition at line 189 of file btGImpactBvh.h.
|
inline |
node count
Definition at line 173 of file btGImpactBvh.h.
|
inline |
Definition at line 184 of file btGImpactBvh.h.
|
inline |
Definition at line 204 of file btGImpactBvh.h.
|
inline |
tells if the node is a leaf
Definition at line 179 of file btGImpactBvh.h.
|
inline |
Definition at line 194 of file btGImpactBvh.h.
|
protected |
Definition at line 147 of file btGImpactBvh.h.
|
protected |
Definition at line 146 of file btGImpactBvh.h.