Blender
V3.3
|
Basic Box tree structure. More...
#include <btGImpactQuantizedBvh.h>
Public Member Functions | |
btQuantizedBvhTree () | |
void | build_tree (GIM_BVH_DATA_ARRAY &primitive_boxes) |
stackless build tree More... | |
SIMD_FORCE_INLINE void | quantizePoint (unsigned short *quantizedpoint, const btVector3 &point) const |
SIMD_FORCE_INLINE bool | testQuantizedBoxOverlapp (int node_index, unsigned short *quantizedMin, unsigned short *quantizedMax) const |
SIMD_FORCE_INLINE void | clearNodes () |
SIMD_FORCE_INLINE int | getNodeCount () const |
node count More... | |
SIMD_FORCE_INLINE bool | isLeafNode (int nodeindex) const |
tells if the node is a leaf More... | |
SIMD_FORCE_INLINE int | getNodeData (int nodeindex) const |
SIMD_FORCE_INLINE void | getNodeBound (int nodeindex, btAABB &bound) const |
SIMD_FORCE_INLINE void | setNodeBound (int nodeindex, const btAABB &bound) |
SIMD_FORCE_INLINE int | getLeftNode (int nodeindex) const |
SIMD_FORCE_INLINE int | getRightNode (int nodeindex) const |
SIMD_FORCE_INLINE int | getEscapeNodeIndex (int nodeindex) const |
SIMD_FORCE_INLINE const BT_QUANTIZED_BVH_NODE * | get_node_pointer (int index=0) const |
Protected Member Functions | |
void | calc_quantization (GIM_BVH_DATA_ARRAY &primitive_boxes, btScalar boundMargin=btScalar(1.0)) |
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_QUANTIZED_BVH_NODE_ARRAY | m_node_array |
btAABB | m_global_bound |
btVector3 | m_bvhQuantization |
Basic Box tree structure.
Definition at line 36 of file btGImpactQuantizedBvh.h.
|
inline |
Definition at line 56 of file btGImpactQuantizedBvh.h.
References m_num_nodes.
|
protected |
Definition at line 169 of file btGImpactQuantizedBvh.cpp.
References _calc_splitting_axis(), _sort_and_calc_splitting_index(), btAABB, btAssert, m_data, m_node_array, m_num_nodes, and setNodeBound().
Referenced by build_tree().
|
protected |
Definition at line 81 of file btGImpactQuantizedBvh.cpp.
References btVector3, center, and numIndices().
Referenced by _build_sub_tree().
|
protected |
Definition at line 111 of file btGImpactQuantizedBvh.cpp.
References btAssert, btVector3, center, numIndices(), and btAlignedObjectArray< T >::swap().
Referenced by _build_sub_tree().
void btQuantizedBvhTree::build_tree | ( | GIM_BVH_DATA_ARRAY & | primitive_boxes | ) |
stackless build tree
prototype functions for box tree management
Definition at line 216 of file btGImpactQuantizedBvh.cpp.
References _build_sub_tree(), calc_quantization(), m_node_array, m_num_nodes, btAlignedObjectArray< T >::resize(), and btAlignedObjectArray< T >::size().
Referenced by btGImpactQuantizedBvh::buildSet().
|
protected |
Definition at line 65 of file btGImpactQuantizedBvh.cpp.
References bt_calc_quantization_parameters(), btAABB, m_bvhQuantization, m_global_bound, and btAlignedObjectArray< T >::size().
Referenced by build_tree().
|
inline |
Definition at line 78 of file btGImpactQuantizedBvh.h.
References btAlignedObjectArray< T >::clear(), m_node_array, and m_num_nodes.
|
inline |
Definition at line 143 of file btGImpactQuantizedBvh.h.
References m_node_array.
Referenced by btGImpactQuantizedBvh::get_node_pointer().
|
inline |
Definition at line 138 of file btGImpactQuantizedBvh.h.
References m_node_array.
Referenced by btGImpactQuantizedBvh::getEscapeNodeIndex().
|
inline |
Definition at line 127 of file btGImpactQuantizedBvh.h.
Referenced by btGImpactQuantizedBvh::getLeftNode().
|
inline |
Definition at line 101 of file btGImpactQuantizedBvh.h.
References bt_unquantize(), m_bvhQuantization, m_global_bound, m_node_array, m_quantizedAabbMax, and m_quantizedAabbMin.
Referenced by btGImpactQuantizedBvh::getNodeBound().
|
inline |
node count
Definition at line 85 of file btGImpactQuantizedBvh.h.
References m_num_nodes.
Referenced by btGImpactQuantizedBvh::getNodeCount().
|
inline |
Definition at line 96 of file btGImpactQuantizedBvh.h.
References m_node_array.
Referenced by btGImpactQuantizedBvh::getNodeData().
|
inline |
Definition at line 132 of file btGImpactQuantizedBvh.h.
References isLeafNode(), and m_node_array.
Referenced by btGImpactQuantizedBvh::getRightNode().
|
inline |
tells if the node is a leaf
Definition at line 91 of file btGImpactQuantizedBvh.h.
References m_node_array.
Referenced by getRightNode(), and btGImpactQuantizedBvh::isLeafNode().
|
inline |
Definition at line 65 of file btGImpactQuantizedBvh.h.
References bt_quantize_clamp(), m_bvhQuantization, m_global_bound, and point.
Referenced by btGImpactQuantizedBvh::boxQuery().
|
inline |
Definition at line 112 of file btGImpactQuantizedBvh.h.
References bt_quantize_clamp(), m_bvhQuantization, m_global_bound, m_node_array, m_quantizedAabbMax, and m_quantizedAabbMin.
Referenced by _build_sub_tree(), and btGImpactQuantizedBvh::setNodeBound().
|
inline |
Definition at line 71 of file btGImpactQuantizedBvh.h.
References m_node_array.
Referenced by btGImpactQuantizedBvh::boxQuery().
|
protected |
Definition at line 42 of file btGImpactQuantizedBvh.h.
Referenced by calc_quantization(), getNodeBound(), quantizePoint(), and setNodeBound().
|
protected |
Definition at line 41 of file btGImpactQuantizedBvh.h.
Referenced by calc_quantization(), getNodeBound(), quantizePoint(), and setNodeBound().
|
protected |
Definition at line 40 of file btGImpactQuantizedBvh.h.
Referenced by _build_sub_tree(), build_tree(), clearNodes(), get_node_pointer(), getEscapeNodeIndex(), getNodeBound(), getNodeData(), getRightNode(), isLeafNode(), setNodeBound(), and testQuantizedBoxOverlapp().
|
protected |
Definition at line 39 of file btGImpactQuantizedBvh.h.
Referenced by _build_sub_tree(), btQuantizedBvhTree(), build_tree(), clearNodes(), and getNodeCount().