Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Private Attributes
btTriangleBuffer Class Reference

btTriangleBuffer can be useful to collect and store overlapping triangles between AABB and concave objects that support 'processAllTriangles' More...

#include <btTriangleBuffer.h>

Inheritance diagram for btTriangleBuffer:
Inheritance graph
[legend]
Collaboration diagram for btTriangleBuffer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void processTriangle (btVector3 *triangle, int partId, int triangleIndex)
 example usage of this class:
int getNumTriangles () const
const btTrianglegetTriangle (int index) const
void clearBuffer ()

Private Attributes

btAlignedObjectArray< btTrianglem_triangleBuffer

Detailed Description

btTriangleBuffer can be useful to collect and store overlapping triangles between AABB and concave objects that support 'processAllTriangles'

Definition at line 32 of file btTriangleBuffer.h.


Member Function Documentation

void btTriangleBuffer::clearBuffer ( ) [inline]

Definition at line 52 of file btTriangleBuffer.h.

Here is the call graph for this function:

int btTriangleBuffer::getNumTriangles ( ) const [inline]

Definition at line 42 of file btTriangleBuffer.h.

       {
              return int(m_triangleBuffer.size());
       }

Here is the call graph for this function:

const btTriangle& btTriangleBuffer::getTriangle ( int  index) const [inline]

Definition at line 47 of file btTriangleBuffer.h.

       {
              return m_triangleBuffer[index];
       }
void btTriangleBuffer::processTriangle ( btVector3 triangle,
int  partId,
int  triangleIndex 
) [virtual]

example usage of this class:

Implements btTriangleCallback.

Definition at line 31 of file btTriangleBuffer.cpp.

{
              btTriangle    tri;
              tri.m_vertex0 = triangle[0];
              tri.m_vertex1 = triangle[1];
              tri.m_vertex2 = triangle[2];
              tri.m_partId = partId;
              tri.m_triangleIndex = triangleIndex;
                     
              m_triangleBuffer.push_back(tri);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 35 of file btTriangleBuffer.h.


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