CoptionsReadMXS

 

 

C++Python
Cmaxwell::CoptionsReadMXSCoptionsReadMXS

Options to read MXSs.

Inherits from

Cflags.

Enumerations

Read options

Methods

NameDescription
CoptionsReadMXSClass constructor.
setMaterialConflictSets what to do in case of a material conflict.
setGeometryConflictSets what to do in case of a geometry conflict.

CoptionsReadMXS

Class constructor.

LanguageSyntax
C++Cmaxwell::CoptionsReadMXS()
PythonCoptionsReadMXS()

Examples

C++
// Set options to skip objects.
 
Cmaxwell::CoptionsReadMXS options;
options.set(Cmaxwell::CoptionsReadMXS::SKIP_OBJECTS);

// Read a scene from disk skipping objects.
  
Cmaxwell* scene = new Cmaxwell( callback );
scene.readMXS( "C:/scenes/sphere.mxs", options );  
Python
// Set options to skip objects.

options = CoptionsReadMXS();
options.set(CoptionsReadMXS.SKIP_MESHES);

// Read a scene from disk skipping objects.
  
scene = Cmaxwell( mwcallback );
scene.readMXS( 'c:/scenes/sphere.mxs', options );

setMaterialConflict

Sets what to do in case of a material conflict.

LanguageSyntax
C++void setMaterialConflict( const dword flags )
PythonsetGeometryConflict( int flags )

Examples

Python
// Rename the material that produces the conflict.
options = CoptionsReadMXS();
options.setMaterialConflict( CoptionsReadMXS.MATERIAL_CONFLICT_RENAME_NEW );
scene.readMXS(path,options); 

setGeometryConflict

Sets what to do in case of a geometry conflict.

LanguageSyntax
C++void setGeometryConflict( const dword flags )
PythonsetGeometryConflict( int flags )

Examples

Python
// Rename the geometry that produces the conflict.
options = CoptionsReadMXS();
options.setGeometryConflict( CoptionsReadMXS.GEOMETRY_CONFLICT_RENAME_NEW );
scene.readMXS(path,options) 

Read options

Valid flags used by setMaterialConflict and setGeometryConflict.

ValueC++PythonDescription
0x0000Cmaxwell::CoptionsReadMXS::READ_ALLCoptionsReadMXS.READ_ALLReads all the scene
0x0001Cmaxwell::CoptionsReadMXS::SKIP_OBJECTSCoptionsReadMXS.SKIP_OBJECTSReads everything except objects and instances
0x0002Cmaxwell::CoptionsReadMXS::SKIP_MESHESCoptionsReadMXS.SKIP_MESHESReads everything including objects but skips meshes
0x0000Cmaxwell::CoptionsReadMXS::GEOMETRY_CONFLICT_RENAME_NEWCoptionsReadMXS.GEOMETRY_CONFLICT_RENAME_NEW 
0x0020Cmaxwell::CoptionsReadMXS::GEOMETRY_CONFLICT_REMAIN_FIRSTCoptionsReadMXS.GEOMETRY_CONFLICT_REMAIN_FIRST 
0x0040Cmaxwell::CoptionsReadMXS::GEOMETRY_CONFLICT_OVERWRITECoptionsReadMXS.GEOMETRY_CONFLICT_OVERWRITE 
0x0060Cmaxwell::CoptionsReadMXS::GEOMETRY_CONFLICT_ASKCoptionsReadMXS.GEOMETRY_CONFLICT_ASK 
0x0060Cmaxwell::CoptionsReadMXS::GEOMETRY_CONFLICT_FLAGSCoptionsReadMXS.GEOMETRY_CONFLICT_FLAGS 
0x0000Cmaxwell::CoptionsReadMXS::MATERIAL_CONFLICT_RENAME_NEWCoptionsReadMXS.MATERIAL_CONFLICT_RENAME_NEW 
0x0080Cmaxwell::CoptionsReadMXS::MATERIAL_CONFLICT_REMAIN_FIRSTCoptionsReadMXS.MATERIAL_CONFLICT_REMAIN_FIRST 
0x0100Cmaxwell::CoptionsReadMXS::MATERIAL_CONFLICT_OVERWRITECoptionsReadMXS.MATERIAL_CONFLICT_OVERWRITE 
0x0180Cmaxwell::CoptionsReadMXS::MATERIAL_CONFLICT_ASKCoptionsReadMXS.MATERIAL_CONFLICT_ASK 
0x0180Cmaxwell::CoptionsReadMXS::MATERIAL_CONFLICT_FLAGSCoptionsReadMXS.MATERIAL_CONFLICT_FLAGS 

 

 

 

 

 

 

 

 

 

 

Â