mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 01:10:32 +05:00
Add interface for keeping information about performed operation of extrusion.
This commit is contained in:
parent
ab6b16e673
commit
05ae10badd
@ -63,6 +63,7 @@
|
||||
#include <Extrema_POnSurf.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <ElCLib.hxx>
|
||||
#include <TColStd_ListOfInteger.hxx>
|
||||
|
||||
#include <map>
|
||||
|
||||
@ -2464,6 +2465,17 @@ void SMESH_MeshEditor::ExtrusionSweep(set<const SMDS_MeshElement*> & theElems,
|
||||
}
|
||||
// make new elements
|
||||
sweepElement( aMesh, elem, newNodesItVec, newElemsMap[elem] );
|
||||
|
||||
// fill history
|
||||
TColStd_ListOfInteger ListNewID;
|
||||
list<const SMDS_MeshElement*> tmpList = newElemsMap[elem];
|
||||
for(list<const SMDS_MeshElement*>::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 );
|
||||
}
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <TColStd_DataMapOfIntegerListOfInteger.hxx>
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user