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