Versions Compared

Key

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

Private class. Useful to check null materials.

...

Column

Inherits

Cpointer

Column

Inherited by

CmaterialLayer

CmaterialEmitter

Creflectance

Ccoating

Cbsdf

...

Friend classes

...

Friend classes

CmaterialCmaterialLayerCmaterialEmitterCreflectanceCcoating and Cbsdf.

Inherits from

Cpointer.

Inherited by

CmaterialLayerCmaterialEmitterCreflectanceCcoating and Cbsdf.

Examples

Code Block
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
material = scene.createMaterial( 'plastic' );
if material.isNull():
  print( 'Error: material -plastic- not created' );
else:
  print( 'Good news: material -plastic- created successfully' );

...