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 }.
More...
#include <btTriangleBuffer.h>
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.
◆ clearBuffer()
void btTriangleBuffer::clearBuffer |
( |
| ) |
|
|
inline |
◆ getNumTriangles()
int btTriangleBuffer::getNumTriangles |
( |
| ) |
const |
|
inline |
◆ getTriangle()
const btTriangle & btTriangleBuffer::getTriangle |
( |
int |
index | ) |
const |
|
inline |
◆ processTriangle()
void btTriangleBuffer::processTriangle |
( |
btVector3 * |
triangle, |
|
|
int |
partId, |
|
|
int |
triangleIndex |
|
) |
| |
|
virtual |
◆ m_triangleBuffer
The documentation for this class was generated from the following files: