Private class. Useful to check null objects, materials, etc.
Friend classes
Cmaxwell::Cbsdf, CmaxwellMxi, Ccluster, Cobject, Ccamera, Cmaterial, CmaterialEmitter, CmaterialLayer, Creflectance, Ccoating and Cbsdf.
Inherited by
CmaterialPointer, Cmaterial, Ccamera, Cobject and Ccluster.
Methods
Name | Description |
---|---|
isNull | Returns whether the object, material or camera is empty (null). |
getPointer | Internal use. |
...
Returns whether the object, camera, material, material emitter, material or camera layer, reflectance, coating, or BSDF is empty (null).
Language | Syntax |
---|---|
C++ | bool isNull() |
...
Code Block | ||||
---|---|---|---|---|
| ||||
Cmaxwell::Cobject object = scene.getObject( "myobject" ); if( object.isNull() ) printf( "Error: -myobject- not exists" ); else printf( "Good news: -myobject- readed successfully" ); |
Code Block | language | javascript|
---|---|---|
| ||
CmaxwellObject scene.getObject( 'myobject' ); if object.isNull(): print( 'Error: -myobject- not exists' ); else: printf( "Good news: -myobject- readed successfully" ); |
...