Versions Compared

Key

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

Private class. Useful to check null materials.

...

Column

Inherits

Cpointer

...

Friend classes

CmaterialCmaterialLayerCmaterialEmitterCreflectanceCcoating and Cbsdf.

Inherits from

Cpointer.

Inherited by

CmaterialLayer

...

CmaterialEmitter

...

Creflectance

...

Ccoating

...

 and Cbsdf.

...

Examples

Friend classesCmaterialCmaterialLayerCmaterialEmitter
Creflectance
Ccoating
Cbsdf
Code Block
Code Block
language
cpp

Examples

titleC++
Cmaxwell::Cmaterial material = scene.createMaterial( "plastic" );
if( material.isNull() )
 printf( "Error: material -plastic- not created" );
else
 printf( "Good news: material -plastic- created successfully" );
Code Block
titlePython
material = scene.createMaterial( 'plastic' );
if material.isNull():
  print( 'Error: material -plastic- not created' );
else:
  print( 'Good news: material -plastic- created successfully' );

 

 

...