Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Iterates over all triangle cluster clusters in a scene.

Methods

...

NameDescription
Citerator Class constructor.
~Citerator 
first 
next 

...

Class destructor.
Citerator (Ccluster)#firstGets the first cluster of the scene.
Citerator (Ccluster)#nextGets the next cluster.

Anchor
ctor
ctor

Citerator

Class constructor

LanguageSyntax
C++Citerator()
PythonCclusterIterator()

Anchor
first
first

first

Gets first cluster of the scene.

LanguageSyntax
C++Cmaxwell::Ccluster first( Cmaxwell* pMaxwell )
PythonCcluster first( Cmaxwell pMaxwell )

Examples

Code Block
languagecpp
titleC++
Cmaxwell::Ccluster::Citerator it;
Cmaxwell::Ccluster cluster = it.first( scene ); 
Code Block
titlePython
it = CclusterIterator();
cluster = it.first( scene ); 

 

Anchor
next
next

next

Gets next cluster.

LanguageSyntax
C++Cmaxwell::Ccluster next()
PythonCcluster next()

Examples

Code Block
languagecpp
titleC++
Cmaxwell::Ccluster::Citerator it;
Cmaxwell::Ccluster camera = it.first( scene );

while( !cluster.isNull() )
{
  // Do something with the cluster.

  cluster = it.next();
}        
Code Block
titlePython
it = CclusterIterator();
cluster = it.first( scene );

while not cluster.isNull():

  # Do something with the cluster.

  cluster = it.next();