CmaterialPointer

Private class. Useful to check null materials.

Friend classes

CmaterialCmaterialLayerCmaterialEmitterCreflectanceCcoating and Cbsdf.

Inherits from

Cpointer.

Inherited by

CmaterialLayerCmaterialEmitterCreflectanceCcoating and Cbsdf.

Examples

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