CoptionsReadMXS
Â
Â
C++ | Python |
---|---|
Cmaxwell::CoptionsReadMXS | CoptionsReadMXS |
Options to read MXSs.
Inherits from
Enumerations
Methods
Name | Description |
---|---|
CoptionsReadMXS | Class constructor. |
setMaterialConflict | Sets what to do in case of a material conflict. |
setGeometryConflict | Sets what to do in case of a geometry conflict. |
CoptionsReadMXS
Class constructor.
Language | Syntax |
---|---|
C++ | Cmaxwell::CoptionsReadMXS() |
Python | CoptionsReadMXS() |
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.
Language | Syntax |
---|---|
C++ | void setMaterialConflict( const dword flags ) |
Python | setGeometryConflict( 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.
Language | Syntax |
---|---|
C++ | void setGeometryConflict( const dword flags ) |
Python | setGeometryConflict( 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.
Value | C++ | Python | Description |
---|---|---|---|
0x0000 | Cmaxwell::CoptionsReadMXS::READ_ALL | CoptionsReadMXS.READ_ALL | Reads all the scene |
0x0001 | Cmaxwell::CoptionsReadMXS::SKIP_OBJECTS | CoptionsReadMXS.SKIP_OBJECTS | Reads everything except objects and instances |
0x0002 | Cmaxwell::CoptionsReadMXS::SKIP_MESHES | CoptionsReadMXS.SKIP_MESHES | Reads everything including objects but skips meshes |
0x0000 | Cmaxwell::CoptionsReadMXS::GEOMETRY_CONFLICT_RENAME_NEW | CoptionsReadMXS.GEOMETRY_CONFLICT_RENAME_NEW | Â |
0x0020 | Cmaxwell::CoptionsReadMXS::GEOMETRY_CONFLICT_REMAIN_FIRST | CoptionsReadMXS.GEOMETRY_CONFLICT_REMAIN_FIRST | Â |
0x0040 | Cmaxwell::CoptionsReadMXS::GEOMETRY_CONFLICT_OVERWRITE | CoptionsReadMXS.GEOMETRY_CONFLICT_OVERWRITE | Â |
0x0060 | Cmaxwell::CoptionsReadMXS::GEOMETRY_CONFLICT_ASK | CoptionsReadMXS.GEOMETRY_CONFLICT_ASK | Â |
0x0060 | Cmaxwell::CoptionsReadMXS::GEOMETRY_CONFLICT_FLAGS | CoptionsReadMXS.GEOMETRY_CONFLICT_FLAGS | Â |
0x0000 | Cmaxwell::CoptionsReadMXS::MATERIAL_CONFLICT_RENAME_NEW | CoptionsReadMXS.MATERIAL_CONFLICT_RENAME_NEW | Â |
0x0080 | Cmaxwell::CoptionsReadMXS::MATERIAL_CONFLICT_REMAIN_FIRST | CoptionsReadMXS.MATERIAL_CONFLICT_REMAIN_FIRST | Â |
0x0100 | Cmaxwell::CoptionsReadMXS::MATERIAL_CONFLICT_OVERWRITE | CoptionsReadMXS.MATERIAL_CONFLICT_OVERWRITE | Â |
0x0180 | Cmaxwell::CoptionsReadMXS::MATERIAL_CONFLICT_ASK | CoptionsReadMXS.MATERIAL_CONFLICT_ASK | Â |
0x0180 | Cmaxwell::CoptionsReadMXS::MATERIAL_CONFLICT_FLAGS | CoptionsReadMXS.MATERIAL_CONFLICT_FLAGS | Â |
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â