0021208: Performance issue when loading SMESH with an hdf file containing a big mesh

+  virtual bool IsMeshInfoCorrect();
This commit is contained in:
eap 2012-02-24 10:49:36 +00:00
parent 9b54dd0f44
commit 6bf9c4aeaf
2 changed files with 2 additions and 0 deletions

View File

@ -973,6 +973,7 @@ namespace SMESH
virtual SMESH::long_array* GetMeshInfo(); virtual SMESH::long_array* GetMeshInfo();
virtual SMESH::array_of_ElementType* GetTypes(); virtual SMESH::array_of_ElementType* GetTypes();
virtual SMESH::SMESH_Mesh_ptr GetMesh(); virtual SMESH::SMESH_Mesh_ptr GetMesh();
virtual bool IsMeshInfoCorrect() { return true; }
/*! /*!
* \brief Object notified on change of predicate * \brief Object notified on change of predicate

View File

@ -434,6 +434,7 @@ struct _IDSource : public POA_SMESH::SMESH_IDSource
SMESH::long_array* GetIDs() { return new SMESH::long_array( _ids ); } SMESH::long_array* GetIDs() { return new SMESH::long_array( _ids ); }
SMESH::long_array* GetMeshInfo() { return 0; } SMESH::long_array* GetMeshInfo() { return 0; }
SMESH::SMESH_Mesh_ptr GetMesh() { return SMESH::SMESH_Mesh::_duplicate( _mesh ); } SMESH::SMESH_Mesh_ptr GetMesh() { return SMESH::SMESH_Mesh::_duplicate( _mesh ); }
bool IsMeshInfoCorrect() { return true; }
SMESH::array_of_ElementType* GetTypes() SMESH::array_of_ElementType* GetTypes()
{ {
SMESH::array_of_ElementType_var types = new SMESH::array_of_ElementType; SMESH::array_of_ElementType_var types = new SMESH::array_of_ElementType;