22 :m_use32bitIndices(use32bitIndices),
23 m_use4componentVertices(use4componentVertices),
24 m_weldingThreshold(0.0)
85 if (removeDuplicateVertices)
104 if (removeDuplicateVertices)
void push_back(const T &_Val)
The btIndexedMesh indexes a single vertex and index array.
btAlignedObjectArray< btScalar > m_3componentVertices
btAlignedObjectArray< unsigned int > m_32bitIndices
btScalar m_weldingThreshold
PHY_ScalarType m_indexType
const btScalar & getZ() const
Return the z value.
void addIndex(int index)
addIndex is an internal method, use addTriangle instead
IndexedMeshArray m_indexedMeshes
int size() const
return the number of elements in the array
int m_triangleIndexStride
bool m_use4componentVertices
const btScalar & getY() const
Return the y value.
const btScalar & getX() const
Return the x value.
const unsigned char * m_triangleIndexBase
virtual void preallocateIndices(int numindices)
btAlignedObjectArray< unsigned short int > m_16bitIndices
btTriangleMesh(bool use32bitIndices=true, bool use4componentVertices=true)
int findOrAddVertex(const btVector3 &vertex, bool removeDuplicateVertices)
findOrAddVertex is an internal method, use addTriangle instead
btVector3 can be used to represent 3D points and vectors.
btAlignedObjectArray< btVector3 > m_4componentVertices
virtual void preallocateVertices(int numverts)
void addTriangle(const btVector3 &vertex0, const btVector3 &vertex1, const btVector3 &vertex2, bool removeDuplicateVertices=false)
By default addTriangle won't search for duplicate vertices, because the search is very slow for large...
int getNumTriangles() const
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
const unsigned char * m_vertexBase