#include <triangleiterator.h>
Public Member Functions | |
TriangleIterator (const MeshInstance &meshInstance) | |
~TriangleIterator () | |
bool | isDone () const |
const Triangle | next () |
While the various ShapeTriangleIterators can be used to iterate through the triangles of a specific MeshShape, quite often you want to iterate through all the triangles in all MeshShapes in a particular MeshInstance. TriangleIterator provides this functionality.
This iterator will internally use the right type of ShapeTriangleIterator for a specific MeshShape and retrieve triangles through that. Note that only triangles are returned; MeshShapes of a different type will be skipped.
TriangleIterator | ( | const MeshInstance & | meshInstance | ) |
~TriangleIterator | ( | ) |
bool isDone | ( | ) | const |
Checks whether this iterator is done iterating. next() should only be called while this function returns false.