Logo Search packages:      
Sourcecode: blender version File versions  Download package

btTriangleMesh Class Reference

#include <btTriangleMesh.h>

Inheritance diagram for btTriangleMesh:

btStridingMeshInterface

List of all members.


Detailed Description

TriangleMesh provides storage for a concave triangle mesh. It can be used as data for the btTriangleMeshShape.

Definition at line 25 of file btTriangleMesh.h.


Public Member Functions

void addTriangle (const btVector3 &vertex0, const btVector3 &vertex1, const btVector3 &vertex2)
void calculateAabbBruteForce (btVector3 &aabbMin, btVector3 &aabbMax)
 brute force method to calculate aabb
virtual void getLockedReadOnlyVertexIndexBase (const unsigned char **vertexbase, int &numverts, PHY_ScalarType &type, int &stride, const unsigned char **indexbase, int &indexstride, int &numfaces, PHY_ScalarType &indicestype, int subpart=0) const
virtual void getLockedVertexIndexBase (unsigned char **vertexbase, int &numverts, PHY_ScalarType &type, int &stride, unsigned char **indexbase, int &indexstride, int &numfaces, PHY_ScalarType &indicestype, int subpart=0)
virtual int getNumSubParts () const
int getNumTriangles () const
const btVector3getScaling () const
void InternalProcessAllTriangles (btInternalTriangleIndexCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
virtual void preallocateIndices (int numindices)
virtual void preallocateVertices (int numverts)
void setScaling (const btVector3 &scaling)
virtual void unLockReadOnlyVertexBase (int subpart) const
virtual void unLockVertexBase (int subpart)

Protected Attributes

btVector3 m_scaling

Private Attributes

btAlignedObjectArray< int > m_indices
btAlignedObjectArray< btVector3m_vertices

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index