Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
16 #ifndef BT_UNION_FIND_H
17 #define BT_UNION_FIND_H
21 #define USE_PATH_COMPRESSION 1
24 #define STATIC_SIMULATION_ISLAND_OPTIMIZATION 1
82 #ifndef USE_PATH_COMPRESSION
97 #endif //USE_PATH_COMPRESSION
109 #ifdef USE_PATH_COMPRESSION
112 x = elementPtr->
m_id;
123 #endif //BT_UNION_FIND_H
UnionFind calculates connected subsets.
void sortIslands()
this is a special operation, destroying the content of btUnionFind.
btElement & getElement(int index)
int getNumElements() const
#define SIMD_FORCE_INLINE
btAlignedObjectArray< btElement > m_elements
const btElement & getElement(int index) const
int size() const
return the number of elements in the array