Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
686d2fa
)
PAL12992. Add type TIDSortedElemSet to be used to assure predictability of edition
author
eap
<eap@opencascade.com>
Mon, 7 Aug 2006 12:05:03 +0000
(12:05 +0000)
committer
eap
<eap@opencascade.com>
Mon, 7 Aug 2006 12:05:03 +0000
(12:05 +0000)
src/SMESH/SMESH_MeshEditor.hxx
patch
|
blob
|
history
diff --git
a/src/SMESH/SMESH_MeshEditor.hxx
b/src/SMESH/SMESH_MeshEditor.hxx
index 9373b832c19604c6c392dfbc9f7d0d9a64580f14..3c891d1a3fc3024ccad6f15e7e63dba8ddb07dab 100644
(file)
--- a/
src/SMESH/SMESH_MeshEditor.hxx
+++ b/
src/SMESH/SMESH_MeshEditor.hxx
@@
-55,7
+55,17
@@
class gp_Vec;
class gp_Pnt;
class 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 );