26 mesh.m_numVertices = numVertices;
43 numverts =
mesh.m_numVertices;
44 (*vertexbase) = (
unsigned char*)
mesh.m_vertexBase;
46 type =
mesh.m_vertexType;
50 numfaces =
mesh.m_numTriangles;
52 (*indexbase) = (
unsigned char*)
mesh.m_triangleIndexBase;
53 indexstride =
mesh.m_triangleIndexStride;
54 indicestype =
mesh.m_indexType;
61 numverts =
mesh.m_numVertices;
62 (*vertexbase) = (
const unsigned char*)
mesh.m_vertexBase;
64 type =
mesh.m_vertexType;
68 numfaces =
mesh.m_numTriangles;
69 (*indexbase) = (
const unsigned char*)
mesh.m_triangleIndexBase;
70 indexstride =
mesh.m_triangleIndexStride;
71 indicestype =
mesh.m_indexType;
PHY_ScalarType
PHY_ScalarType enumerates possible scalar types.
const T & btMax(const T &a, const T &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
void addIndexedMesh(const btIndexedMesh &mesh, PHY_ScalarType indexType=PHY_INTEGER)
virtual int getNumSubParts() const
getNumSubParts returns the number of separate subparts each subpart has a continuous array of vertice...
virtual void setPremadeAabb(const btVector3 &aabbMin, const btVector3 &aabbMax) const
virtual ~btTriangleIndexVertexArray()
virtual bool hasPremadeAabb() const
IndexedMeshArray m_indexedMeshes
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
virtual void getPremadeAabb(btVector3 *aabbMin, btVector3 *aabbMax) const
btTriangleIndexVertexArray()
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)
get read and write access to a subpart of a triangle mesh this subpart has a continuous array of vert...
btVector3 can be used to represent 3D points and vectors.
The btIndexedMesh indexes a single vertex and index array.