Versions Compared

Key

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

...

CmaterialLayerCmaterialEmitterCreflectanceCcoating and Cbsdf.

Examples

Code Block
languagecpp
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' );

...