C++ | Python |
---|
Cmaxwell::Ccluster::Citerator | CclusterIterator |
Iterates over all objects in a triangle cluster.
...
triangle clusters in a scene.
Methods
Name | Description |
---|
Citerator | Class constructor. |
~Citerator | Class destructor. |
first | Gets the first cluster of the scene. |
next | Gets the next cluster. |
Citerator
Class constructor
Language | Syntax |
---|
C++ | Citerator() |
Python | CclusterIterator() |
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 |
...
Methods
Name | Description |
---|
Citerator | |
~Citerator | |
first | |
next | |
...
();
cluster = it.first( scene ); |
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(); |