From 6bf9c4aeaf62157f3b65934d66795ce6611b086a Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 24 Feb 2012 10:49:36 +0000 Subject: [PATCH] 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh + virtual bool IsMeshInfoCorrect(); --- src/SMESH_I/SMESH_Filter_i.hxx | 1 + src/SMESH_I/SMESH_MeshEditor_i.cxx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/SMESH_I/SMESH_Filter_i.hxx b/src/SMESH_I/SMESH_Filter_i.hxx index ca041a7a7..2930f941d 100644 --- a/src/SMESH_I/SMESH_Filter_i.hxx +++ b/src/SMESH_I/SMESH_Filter_i.hxx @@ -973,6 +973,7 @@ namespace SMESH virtual SMESH::long_array* GetMeshInfo(); virtual SMESH::array_of_ElementType* GetTypes(); virtual SMESH::SMESH_Mesh_ptr GetMesh(); + virtual bool IsMeshInfoCorrect() { return true; } /*! * \brief Object notified on change of predicate diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 4c1ff5c3b..65a6eff03 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -434,6 +434,7 @@ struct _IDSource : public POA_SMESH::SMESH_IDSource SMESH::long_array* GetIDs() { return new SMESH::long_array( _ids ); } SMESH::long_array* GetMeshInfo() { return 0; } SMESH::SMESH_Mesh_ptr GetMesh() { return SMESH::SMESH_Mesh::_duplicate( _mesh ); } + bool IsMeshInfoCorrect() { return true; } SMESH::array_of_ElementType* GetTypes() { SMESH::array_of_ElementType_var types = new SMESH::array_of_ElementType; -- 2.39.2