...
Iterates over all triangle cluster clusters in a scene.
Methods
...
Name | Description |
---|---|
Citerator | Class constructor. |
~Citerator | |
first | |
next |
...
Class destructor. | |
Citerator (Ccluster)#first | Gets the first cluster of the scene. |
Citerator (Ccluster)#next | Gets the next cluster. |
Anchor | ||||
---|---|---|---|---|
|
Citerator
Class constructor
Language | Syntax |
---|---|
C++ | Citerator() |
Python | CclusterIterator() |
Anchor | ||||
---|---|---|---|---|
|
first
Gets first cluster of the scene.
Language | Syntax |
---|---|
C++ | Cmaxwell::Ccluster first( Cmaxwell* pMaxwell ) |
Python | Ccluster first( Cmaxwell pMaxwell ) |
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
Cmaxwell::Ccluster::Citerator it;
Cmaxwell::Ccluster cluster = it.first( scene ); |
Code Block | ||
---|---|---|
| ||
it = CclusterIterator();
cluster = it.first( scene ); |
Anchor | ||||
---|---|---|---|---|
|
next
Gets next cluster.
Language | Syntax |
---|---|
C++ | Cmaxwell::Ccluster next() |
Python | Ccluster next() |
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
Cmaxwell::Ccluster::Citerator it;
Cmaxwell::Ccluster camera = it.first( scene );
while( !cluster.isNull() )
{
// Do something with the cluster.
cluster = it.next();
} |
Code Block | ||
---|---|---|
| ||
it = CclusterIterator();
cluster = it.first( scene );
while not cluster.isNull():
# Do something with the cluster.
cluster = it.next(); |