Bullet Collision Detection & Physics Library: btTriangleCallback Class Reference

Bullet Collision Detection & Physics Library

Public Member Functions | List of all members
btTriangleCallback Class Referenceabstract

The btTriangleCallback provides a callback for each overlapping triangle when calling processAllTriangles. More...

`#include <btTriangleCallback.h>`

Inheritance diagram for btTriangleCallback:
[legend]

## Public Member Functions
virtual | ~btTriangleCallback ()
virtual void | processTriangle (btVector3 *triangle, int partId, int triangleIndex)=0

## Detailed Description

The btTriangleCallback provides a callback for each overlapping triangle when calling processAllTriangles.

This callback is called by processAllTriangles for all btConcaveShape derived class, such as btBvhTriangleMeshShape, btStaticPlaneShape and btHeightfieldTerrainShape.

Definition at line 23 of file btTriangleCallback.h.

## Constructor & Destructor Documentation

## ◆ ~btTriangleCallback()

btTriangleCallback::~btTriangleCallback | ( |  | ) |
| virtual

Definition at line 18 of file btTriangleCallback.cpp.

## Member Function Documentation

## ◆ processTriangle()

virtual void btTriangleCallback::processTriangle | ( | btVector3 * | triangle,
|  | int | partId,
|  | int | triangleIndex
| ) |  |
| pure virtual

Implemented in DebugDrawcallback, btGImpactTriangleCallback, b3ProcessAllTrianglesHeightfield, btSoftBodyTriangleCallback, SupportVertexCallback, btTriangleConvexcastCallback, btConvexTriangleCallback, btConnectivityProcessor, btTriangleRaycastCallback, btTriangleBuffer, and btScaledTriangleCallback.

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

- btTriangleCallback.h
- btTriangleCallback.cpp