Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Iterates over all materials in a scene.

Methods

NameDescription
Citerator (Cmaterial)Class constructor.
~CiteratorClass destructor.
Citerator (Cmaterial)#firstfirstGets first material of the scene.
Citerator (Cmaterial)#nextnextGets next material.

Anchor
ctor
ctor

...

Code Block
languagecpp
titleC++
Cmaxwell::Cmaterial::Citerator it;
Cmaxwell::Cmaterial material = it.first( scene ); 
python
Code Block
language
titlePython
it = CmaxwellMaterialIterator();
material = it.first( scene ); 

...

Code Block
languagecpp
titleC++
Cmaxwell::Cmaterial::Citerator it;
Cmaxwell::Cmaterial material = it.first( scene );
 
while( !material.isNull() )
{
 
  // Do something with the material
  
  material = it.next();
}     
python
Code Block
language
titlePython
it = CmaxwellMaterialIterator();
material = it.first( scene ); 
 
while not material.isNull():
 
  # Do something with the material
 
  material = it.next();   

 

...