Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

C++Python
Cmaxwell::Ccluster::CiteratorCclusterIterator

Iterates over all triangle clusters in a scene.

Methods

NameDescription
CiteratorClass constructor.
~CiteratorClass destructor.
firstGets the first cluster of the scene.
nextGets the next cluster.

Citerator

Class constructor

LanguageSyntax
C++Citerator()
PythonCclusterIterator()

first

Gets first cluster of the scene.

LanguageSyntax
C++Cmaxwell::Ccluster first( Cmaxwell* pMaxwell )
PythonCcluster 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.

LanguageSyntax
C++Cmaxwell::Ccluster next()
PythonCcluster 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();       

 

 

 

 

 

 

 

 

 

 

 

  • No labels