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.
firstGets first material of the scene.
nextGets next material.

Anchor
ctor
ctor

...

Code Block
languagecpp
titleC++
Cmaxwell::Cmaterial::Citerator it;
Cmaxwell::Cmaterial material = it.first( scene ); 
Code Block
languagejavascript
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();
}     
javascript
Code Block
language
titlePython
it = CmaxwellMaterialIterator();
material = it.first( scene ); 
 
while not material.isNull():
 
  # Do something with the material
 
  material = it.next();   

 

 

 

...