16#ifndef _BT_TRIANGLE_INFO_MAP_H
17#define _BT_TRIANGLE_INFO_MAP_H
23#define TRI_INFO_V0V1_CONVEX 1
24#define TRI_INFO_V1V2_CONVEX 2
25#define TRI_INFO_V2V0_CONVEX 4
27#define TRI_INFO_V0V1_SWAP_NORMALB 8
28#define TRI_INFO_V1V2_SWAP_NORMALB 16
29#define TRI_INFO_V2V0_SWAP_NORMALB 32
135 int sz =
sizeof(int);
138 int* memPtr = (
int*)chunk->
m_oldPtr;
139 for (
int i = 0; i < numElem; i++, memPtr++)
150 int sz =
sizeof(int);
153 int* memPtr = (
int*)chunk->
m_oldPtr;
154 for (
int i = 0; i < numElem; i++, memPtr++)
169 for (
int i = 0; i < numElem; i++, memPtr++)
183 int sz =
sizeof(int);
186 int* memPtr = (
int*)chunk->
m_oldPtr;
187 for (
int i = 0; i < numElem; i++, memPtr++)
200 return "btTriangleInfoMapData";
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define SIMD_FORCE_INLINE
btHashMap< btHashInt, btTriangleInfo > btInternalTriangleInfoMap
int size() const
return the number of elements in the array
void resize(int newsize, const T &fillData=T())
The btHashMap template class implements a generic and lightweight hashmap.
btAlignedObjectArray< int > m_hashTable
btAlignedObjectArray< int > m_next
btAlignedObjectArray< Key > m_keyArray
btAlignedObjectArray< Value > m_valueArray
virtual btChunk * allocate(size_t size, int numElements)=0
virtual void * getUniquePointer(void *oldPtr)=0
virtual void finalizeChunk(btChunk *chunk, const char *structType, int chunkCode, void *oldPtr)=0
those fields have to be float and not btScalar for the serialization to work properly
float m_zeroAreaThreshold
float m_equalVertexThreshold
btTriangleInfoData * m_valueArrayPtr
float m_edgeDistanceThreshold
The btTriangleInfoMap stores edge angle information for some triangles. You can compute this informat...
void deSerialize(struct btTriangleInfoMapData &data)
fills the dataBuffer and returns the struct name (and 0 on failure)
btScalar m_maxEdgeAngleThreshold
used to determine edge contacts: if the closest distance between a contact point and an edge is small...
btScalar m_edgeDistanceThreshold
used to compute connectivity: if the distance between two vertices is smaller than m_equalVertexThres...
btScalar m_zeroAreaThreshold
btTriangleInfoMap()
used to determine if a triangle is degenerate (length squared of cross product of 2 triangle edges < ...
btScalar m_planarEpsilon
used to determine if an edge or contact normal is convex, using the dot product
btScalar m_equalVertexThreshold
used to determine if a triangle edge is planar with zero angle
virtual ~btTriangleInfoMap()
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
virtual int calculateSerializeBufferSize() const
The btTriangleInfo structure stores information to adjust collision normals to avoid collisions again...