Salome HOME
0020279: [CEA 334] control the "random" use when using mesh algorithms
authoreap <eap@opencascade.com>
Tue, 19 May 2009 15:28:40 +0000 (15:28 +0000)
committereap <eap@opencascade.com>
Tue, 19 May 2009 15:28:40 +0000 (15:28 +0000)
   Use TIDCompare from SMDS_MeshElement.hxx

src/SMESHDS/SMESHDS_SubMesh.hxx

index 839f7eabeb246dd20050a1e3ccc975d4497d1236..0b18640f68e92493060e33c184182fe019c14bee 100644 (file)
@@ -66,10 +66,6 @@ class SMESHDS_EXPORT SMESHDS_SubMesh
 
  private:
 
-  struct TIDCompare { // to have nodes and elements sorted by ID
-    bool operator () (const SMDS_MeshElement* e1, const SMDS_MeshElement* e2) const
-    { return e1->GetID() < e2->GetID(); }
-  };
   typedef std::set<const SMDS_MeshElement*, TIDCompare > TElemSet;
   TElemSet myElements, myNodes;