Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

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' );

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • No labels