iTriangleMeshIterator Struct Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
iTriangleMeshIterator Struct Reference
Geometry utilities

Iterator to iterate over all data mesh ID's in an object model. More...

`#include <imesh/objmodel.h>`

Inheritance diagram for iTriangleMeshIterator:

List of all members.

## Public Member Functions
virtual bool | HasNext ()=0
| Return true if the iterator has more elements.
virtual iTriangleMesh * | Next (csStringID &id)=0
| Return next element.

## Detailed Description

Iterator to iterate over all data mesh ID's in an object model.

This is returned by iObjectModel::GetTriangleDataIterator(). This iterator will return all data meshes that are set. That includes data meshes that are set but still 0.

Definition at line 60 of file objmodel.h.

## Member Function Documentation

virtual bool iTriangleMeshIterator::HasNext | ( |  | ) | `[pure virtual]`

Return true if the iterator has more elements.

virtual iTriangleMesh* iTriangleMeshIterator::Next | ( | csStringID & | id | ) | `[pure virtual]`

Return next element.

The id of the triangle mesh will be returned in 'id'. Note that this function can return 0. This doesn't mean that the iterator has ended. It just means that for the given 'id' the mesh was set to 0.

The documentation for this struct was generated from the following file:

- imesh/objmodel.h