mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
PAL12147. make different mesh_editors for different meshes in DumpPython file
This commit is contained in:
parent
e14767b848
commit
562a5b8a7a
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user