PAL12147. make different mesh_editors for different meshes in DumpPython file

This commit is contained in:
eap 2006-04-12 14:12:50 +00:00
parent e14767b848
commit 562a5b8a7a
2 changed files with 4 additions and 1 deletions

View File

@ -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 <TColStd_HSequenceOfInteger.hxx>
@ -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)

View File

@ -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;