Public Member Functions | Private Attributes
btTriangleBuffer Class Reference

#include <btTriangleBuffer.h>

Inheritance diagram for btTriangleBuffer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void clearBuffer ()
int getNumTriangles () const
const btTrianglegetTriangle (int index) const
virtual void processTriangle (btVector3 *triangle, int partId, int triangleIndex)

Private Attributes

btAlignedObjectArray< btTrianglem_triangleBuffer

Detailed Description

The btTriangleBuffer callback can be useful to collect and store overlapping triangles between AABB and concave objects that support 'processAllTriangles' Example usage of this class: btTriangleBuffer triBuf; concaveShape->processAllTriangles(&triBuf,aabbMin, aabbMax); for (int i=0;i<triBuf.getNumTriangles();i++) { const btTriangle& tri = triBuf.getTriangle(i); do something useful here with the triangle }

Definition at line 40 of file btTriangleBuffer.h.


Member Function Documentation

void btTriangleBuffer::clearBuffer ( ) [inline]

Definition at line 60 of file btTriangleBuffer.h.

int btTriangleBuffer::getNumTriangles ( ) const [inline]

Definition at line 50 of file btTriangleBuffer.h.

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

Definition at line 55 of file btTriangleBuffer.h.

virtual void btTriangleBuffer::processTriangle ( btVector3 *  triangle,
int  partId,
int  triangleIndex 
) [virtual]

Implements btTriangleCallback.


Member Data Documentation

Definition at line 43 of file btTriangleBuffer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:33