Blender
V3.3
|
Structure for containing Boxes. More...
#include <btGImpactQuantizedBvh.h>
Public Member Functions | |
btGImpactQuantizedBvh () | |
this constructor doesn't build the tree. you must call buildSet More... | |
btGImpactQuantizedBvh (btPrimitiveManagerBase *primitive_manager) | |
this constructor doesn't build the tree. you must call buildSet More... | |
SIMD_FORCE_INLINE btAABB | getGlobalBox () const |
SIMD_FORCE_INLINE void | setPrimitiveManager (btPrimitiveManagerBase *primitive_manager) |
SIMD_FORCE_INLINE btPrimitiveManagerBase * | getPrimitiveManager () const |
Protected Member Functions | |
void | refit () |
Protected Attributes | |
btQuantizedBvhTree | m_box_tree |
btPrimitiveManagerBase * | m_primitive_manager |
SIMD_FORCE_INLINE void | update () |
this attemps to refit the box set. More... | |
void | buildSet () |
this rebuild the entire set More... | |
bool | boxQuery (const btAABB &box, btAlignedObjectArray< int > &collided_results) const |
returns the indices of the primitives in the m_primitive_manager More... | |
SIMD_FORCE_INLINE bool | boxQueryTrans (const btAABB &box, const btTransform &transform, btAlignedObjectArray< int > &collided_results) const |
returns the indices of the primitives in the m_primitive_manager More... | |
bool | rayQuery (const btVector3 &ray_dir, const btVector3 &ray_origin, btAlignedObjectArray< int > &collided_results) const |
returns the indices of the primitives in the m_primitive_manager More... | |
SIMD_FORCE_INLINE bool | hasHierarchy () const |
tells if this set has hierarcht More... | |
SIMD_FORCE_INLINE bool | isTrimesh () const |
tells if this set is a trimesh More... | |
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 void | getNodeTriangle (int nodeindex, btPrimitiveTriangle &triangle) const |
SIMD_FORCE_INLINE const BT_QUANTIZED_BVH_NODE * | get_node_pointer (int index=0) const |
static void | find_collision (const btGImpactQuantizedBvh *boxset1, const btTransform &trans1, const btGImpactQuantizedBvh *boxset2, const btTransform &trans2, btPairSet &collision_pairs) |
Structure for containing Boxes.
This class offers an structure for managing a box tree of primitives. Requires a Primitive prototype (like btPrimitiveManagerBase )
Definition at line 156 of file btGImpactQuantizedBvh.h.
|
inline |
this constructor doesn't build the tree. you must call buildSet
Definition at line 168 of file btGImpactQuantizedBvh.h.
References m_primitive_manager, and NULL.
|
inline |
this constructor doesn't build the tree. you must call buildSet
Definition at line 174 of file btGImpactQuantizedBvh.h.
References m_primitive_manager.
bool btGImpactQuantizedBvh::boxQuery | ( | const btAABB & | box, |
btAlignedObjectArray< int > & | collided_results | ||
) | const |
returns the indices of the primitives in the m_primitive_manager
Definition at line 286 of file btGImpactQuantizedBvh.cpp.
References getEscapeNodeIndex(), getNodeCount(), getNodeData(), isLeafNode(), m_box_tree, btAlignedObjectArray< T >::push_back(), btQuantizedBvhTree::quantizePoint(), btAlignedObjectArray< T >::size(), and btQuantizedBvhTree::testQuantizedBoxOverlapp().
Referenced by boxQueryTrans(), btGImpactCollisionAlgorithm::gimpact_vs_shape_find_pairs(), and btGImpactMeshShapePart::processAllTriangles().
|
inline |
returns the indices of the primitives in the m_primitive_manager
Definition at line 212 of file btGImpactQuantizedBvh.h.
References boxQuery(), btAABB, and transform().
void btGImpactQuantizedBvh::buildSet | ( | ) |
this rebuild the entire set
Definition at line 270 of file btGImpactQuantizedBvh.cpp.
References btQuantizedBvhTree::build_tree(), btPrimitiveManagerBase::get_primitive_box(), btPrimitiveManagerBase::get_primitive_count(), m_box_tree, m_primitive_manager, btAlignedObjectArray< T >::resize(), and btAlignedObjectArray< T >::size().
Referenced by btGImpactShapeInterface::calcLocalAABB().
|
static |
Definition at line 466 of file btGImpactQuantizedBvh.cpp.
References _find_quantized_collision_pairs_recursive(), BT_BOX_BOX_TRANSFORM_CACHE, and getNodeCount().
Referenced by btGImpactCollisionAlgorithm::gimpact_vs_gimpact_find_pairs().
|
inline |
Definition at line 284 of file btGImpactQuantizedBvh.h.
References btQuantizedBvhTree::get_node_pointer(), and m_box_tree.
|
inline |
Definition at line 274 of file btGImpactQuantizedBvh.h.
References btQuantizedBvhTree::getEscapeNodeIndex(), and m_box_tree.
Referenced by boxQuery(), and rayQuery().
|
inline |
Definition at line 179 of file btGImpactQuantizedBvh.h.
References btAABB, and getNodeBound().
Referenced by btGImpactShapeInterface::calcLocalAABB().
|
inline |
Definition at line 264 of file btGImpactQuantizedBvh.h.
References btQuantizedBvhTree::getLeftNode(), and m_box_tree.
Referenced by _find_quantized_collision_pairs_recursive(), and refit().
|
inline |
Definition at line 254 of file btGImpactQuantizedBvh.h.
References btQuantizedBvhTree::getNodeBound(), and m_box_tree.
Referenced by _quantized_node_collision(), getGlobalBox(), rayQuery(), and refit().
|
inline |
node count
Definition at line 238 of file btGImpactQuantizedBvh.h.
References btQuantizedBvhTree::getNodeCount(), and m_box_tree.
Referenced by boxQuery(), btGImpactShapeInterface::calcLocalAABB(), find_collision(), btGImpactShapeInterface::hasBoxSet(), rayQuery(), and refit().
|
inline |
Definition at line 249 of file btGImpactQuantizedBvh.h.
References btQuantizedBvhTree::getNodeData(), and m_box_tree.
Referenced by _find_quantized_collision_pairs_recursive(), boxQuery(), getNodeTriangle(), rayQuery(), and refit().
|
inline |
Definition at line 279 of file btGImpactQuantizedBvh.h.
References btPrimitiveManagerBase::get_primitive_triangle(), getNodeData(), and m_primitive_manager.
|
inline |
Definition at line 191 of file btGImpactQuantizedBvh.h.
References m_primitive_manager.
Referenced by btGImpactMeshShapePart::lockChildShapes(), and btGImpactMeshShapePart::unlockChildShapes().
|
inline |
Definition at line 269 of file btGImpactQuantizedBvh.h.
References btQuantizedBvhTree::getRightNode(), and m_box_tree.
Referenced by _find_quantized_collision_pairs_recursive(), and refit().
|
inline |
tells if this set has hierarcht
Definition at line 226 of file btGImpactQuantizedBvh.h.
|
inline |
tells if the node is a leaf
Definition at line 244 of file btGImpactQuantizedBvh.h.
References btQuantizedBvhTree::isLeafNode(), and m_box_tree.
Referenced by _find_quantized_collision_pairs_recursive(), boxQuery(), rayQuery(), and refit().
|
inline |
tells if this set is a trimesh
Definition at line 232 of file btGImpactQuantizedBvh.h.
References btPrimitiveManagerBase::is_trimesh(), and m_primitive_manager.
bool btGImpactQuantizedBvh::rayQuery | ( | const btVector3 & | ray_dir, |
const btVector3 & | ray_origin, | ||
btAlignedObjectArray< int > & | collided_results | ||
) | const |
returns the indices of the primitives in the m_primitive_manager
Definition at line 327 of file btGImpactQuantizedBvh.cpp.
References btAABB, getEscapeNodeIndex(), getNodeBound(), getNodeCount(), getNodeData(), isLeafNode(), btAlignedObjectArray< T >::push_back(), and btAlignedObjectArray< T >::size().
Referenced by btGImpactMeshShapePart::processAllTrianglesRay().
|
protected |
Definition at line 230 of file btGImpactQuantizedBvh.cpp.
References btAABB, btPrimitiveManagerBase::get_primitive_box(), getLeftNode(), getNodeBound(), getNodeCount(), getNodeData(), getRightNode(), isLeafNode(), m_primitive_manager, and setNodeBound().
Referenced by update().
|
inline |
Definition at line 259 of file btGImpactQuantizedBvh.h.
References m_box_tree, and btQuantizedBvhTree::setNodeBound().
Referenced by refit().
|
inline |
Definition at line 186 of file btGImpactQuantizedBvh.h.
References m_primitive_manager.
Referenced by btGImpactCompoundShape::btGImpactCompoundShape(), and btGImpactMeshShapePart::btGImpactMeshShapePart().
|
inline |
this attemps to refit the box set.
node manager prototype functions
Definition at line 200 of file btGImpactQuantizedBvh.h.
References refit().
Referenced by btGImpactShapeInterface::calcLocalAABB().
|
protected |
Definition at line 159 of file btGImpactQuantizedBvh.h.
Referenced by boxQuery(), buildSet(), get_node_pointer(), getEscapeNodeIndex(), getLeftNode(), getNodeBound(), getNodeCount(), getNodeData(), getRightNode(), isLeafNode(), and setNodeBound().
|
protected |
Definition at line 160 of file btGImpactQuantizedBvh.h.
Referenced by btGImpactQuantizedBvh(), buildSet(), getNodeTriangle(), getPrimitiveManager(), isTrimesh(), refit(), and setPrimitiveManager().