Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
16 #ifndef BT_TRIANGLE_INDEX_VERTEX_ARRAY_H
17 #define BT_TRIANGLE_INDEX_VERTEX_ARRAY_H
50 #ifdef BT_USE_DOUBLE_PRECISION
90 m_indexedMeshes[m_indexedMeshes.
size() - 1].m_indexType = indexType;
93 virtual void getLockedVertexIndexBase(
unsigned char** vertexbase,
int& numverts,
PHY_ScalarType& type,
int& vertexStride,
unsigned char** indexbase,
int& indexstride,
int& numfaces,
PHY_ScalarType& indicestype,
int subpart = 0);
95 virtual void getLockedReadOnlyVertexIndexBase(
const unsigned char** vertexbase,
int& numverts,
PHY_ScalarType& type,
int& vertexStride,
const unsigned char** indexbase,
int& indexstride,
int& numfaces,
PHY_ScalarType& indicestype,
int subpart = 0)
const;
107 return (
int)m_indexedMeshes.
size();
112 return m_indexedMeshes;
117 return m_indexedMeshes;
123 virtual bool hasPremadeAabb()
const;
124 virtual void setPremadeAabb(
const btVector3& aabbMin,
const btVector3& aabbMax)
const;
128 #endif //BT_TRIANGLE_INDEX_VERTEX_ARRAY_H
virtual void unLockReadOnlyVertexBase(int subpart) const
virtual void preallocateIndices(int numindices)
btTriangleIndexVertexArray()
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
virtual void preallocateVertices(int numverts)
PHY_ScalarType m_vertexType
const unsigned char * m_triangleIndexBase
IndexedMeshArray m_indexedMeshes
The btStridingMeshInterface is the interface class for high performance generic access to triangle me...
btAlignedObjectArray< btIndexedMesh > IndexedMeshArray
PHY_ScalarType
PHY_ScalarType enumerates possible scalar types.
virtual void unLockVertexBase(int subpart)
unLockVertexBase finishes the access to a subpart of the triangle mesh make a call to unLockVertexBas...
The btIndexedMesh indexes a single vertex and index array.
#define BT_DECLARE_ALIGNED_ALLOCATOR()
btVector3 can be used to represent 3D points and vectors.
int m_triangleIndexStride
IndexedMeshArray & getIndexedMeshArray()
#define ATTRIBUTE_ALIGNED16(a)
virtual int getNumSubParts() const
getNumSubParts returns the number of seperate subparts each subpart has a continuous array of vertice...
void addIndexedMesh(const btIndexedMesh &mesh, PHY_ScalarType indexType=PHY_INTEGER)
The btTriangleIndexVertexArray allows to access multiple triangle meshes, by indexing into existing t...
const IndexedMeshArray & getIndexedMeshArray() const
void push_back(const T &_Val)
const unsigned char * m_vertexBase
PHY_ScalarType m_indexType
int size() const
return the number of elements in the array