Salome HOME
First stable version after merging with V3_2_2
[modules/smesh.git] / src / SMESH / SMESH_MeshEditor.hxx
index 3c3c9568bc4fc5ee9cf41d70c0dc298c2f3bfc2a..e9c6a0b7cd65d90b25c742f912fc1ea9362e92ab 100644 (file)
@@ -57,7 +57,17 @@ class gp_Vec;
 class gp_Pnt;
 
 class SMESH_EXPORT SMESH_MeshEditor {
- public:
+public:
+
+  // define a set of elements sorted by ID, to be used to assure
+  // predictability of edition
+  struct TIDCompare {
+    bool operator () (const SMDS_MeshElement* e1, const SMDS_MeshElement* e2)
+    { return e1->GetID() < e2->GetID(); }
+  };
+  typedef set< const SMDS_MeshElement*, TIDCompare > TIDSortedElemSet;
+  
+public:
 
   SMESH_MeshEditor( SMESH_Mesh* theMesh );