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
87 #ifndef USE_PATH_COMPRESSION
99 #endif //USE_PATH_COMPRESSION
111 #ifdef USE_PATH_COMPRESSION
113 m_elements[x].m_id = elementPtr->
m_id;
114 x = elementPtr->
m_id;
116 x = m_elements[x].m_id;
129 #endif //BT_UNION_FIND_H
void sortIslands()
this is a special operation, destroying the content of btUnionFind.
btElement & getElement(int index)
#define SIMD_FORCE_INLINE
UnionFind calculates connected subsets.
int size() const
return the number of elements in the array
int getNumElements() const
const btElement & getElement(int index) const
btAlignedObjectArray< btElement > m_elements