From: skl Date: Mon, 26 Sep 2005 07:03:47 +0000 (+0000) Subject: Add interface for keeping information about performed operation of extrusion. X-Git-Tag: V3_1_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=05ae10badd80e02346c06faf21f68062400f3f20;p=modules%2Fsmesh.git Add interface for keeping information about performed operation of extrusion. --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index c1d184c37..3ab795264 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -63,6 +63,7 @@ #include #include #include +#include #include @@ -2464,6 +2465,17 @@ void SMESH_MeshEditor::ExtrusionSweep(set & theElems, } // make new elements sweepElement( aMesh, elem, newNodesItVec, newElemsMap[elem] ); + + // fill history + TColStd_ListOfInteger ListNewID; + list tmpList = newElemsMap[elem]; + for(list::iterator ite = tmpList.begin(); + ite!=tmpList.end(); ite++) { + ListNewID.Append((*ite)->GetID()); + } + myExtrusionHistory.Bind(elem->GetID(),ListNewID); + // end fill history + } makeWalls( aMesh, mapNewNodes, newElemsMap, mapElemNewNodes, theElems ); } diff --git a/src/SMESH/SMESH_MeshEditor.hxx b/src/SMESH/SMESH_MeshEditor.hxx index 0dfd8c09d..fdbda16d0 100644 --- a/src/SMESH/SMESH_MeshEditor.hxx +++ b/src/SMESH/SMESH_MeshEditor.hxx @@ -35,6 +35,7 @@ #include #include +#include class SMDS_MeshElement; class SMDS_MeshFace; @@ -304,11 +305,15 @@ class SMESH_MeshEditor { SMESHDS_Mesh * GetMeshDS() { return myMesh->GetMeshDS(); } + const TColStd_DataMapOfIntegerListOfInteger& GetExtrusionHistory() const + { return myExtrusionHistory; } private: SMESH_Mesh * myMesh; + TColStd_DataMapOfIntegerListOfInteger myExtrusionHistory; + }; #endif