From 562a5b8a7aca3d98e88a00b982273c2ae18fad2d Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 12 Apr 2006 14:12:50 +0000 Subject: [PATCH] PAL12147. make different mesh_editors for different meshes in DumpPython file --- src/SMESH_I/SMESH_DumpPython.cxx | 3 ++- src/SMESH_I/SMESH_MeshEditor_i.hxx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SMESH_I/SMESH_DumpPython.cxx b/src/SMESH_I/SMESH_DumpPython.cxx index 491f24ad3..bd0e62e1d 100644 --- a/src/SMESH_I/SMESH_DumpPython.cxx +++ b/src/SMESH_I/SMESH_DumpPython.cxx @@ -26,6 +26,7 @@ #include "SMESH_PythonDump.hxx" #include "SMESH_Gen_i.hxx" #include "SMESH_Filter_i.hxx" +#include "SMESH_MeshEditor_i.hxx" #include "SMESH_2smeshpy.hxx" #include @@ -253,7 +254,7 @@ namespace SMESH TPythonDump& TPythonDump::operator<<(SMESH_MeshEditor_i* theArg) { - myStream << MeshEditorName(); return *this; + myStream << MeshEditorName() << "_" << ( theArg ? theArg->GetMeshId() : -1 ); return *this; } TPythonDump& TPythonDump::operator<<(const TCollection_AsciiString & theStr) diff --git a/src/SMESH_I/SMESH_MeshEditor_i.hxx b/src/SMESH_I/SMESH_MeshEditor_i.hxx index 0632747a6..143ad199f 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.hxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.hxx @@ -227,6 +227,8 @@ class SMESH_MeshEditor_i: public POA_SMESH::SMESH_MeshEditor CORBA::Long NodeID2OfSide1ToMerge, CORBA::Long NodeID2OfSide2ToMerge); + int GetMeshId() const { return _myMesh->GetId(); } + private: SMESHDS_Mesh * GetMeshDS() { return _myMesh->GetMeshDS(); } SMESH_Mesh *_myMesh; -- 2.39.2