Salome HOME
0020978: EDF 1475 SMESH: Convert linear to quadratic on a submesh
[modules/smesh.git] / src / SMDS / SMDS_MeshElementIDFactory.cxx
index ae315ba0f9dad3ee7c3632de908825494d97c908..1abf9e81f24928a9d0c42c65c1d3cdc6f624d1c5 100644 (file)
@@ -126,6 +126,20 @@ SMDS_MeshElement* SMDS_MeshElementIDFactory::MeshElement(int ID)
   return (SMDS_MeshElement*)(elem);
 }
 
+//=======================================================================
+//function : GetFreeID
+//purpose  : 
+//=======================================================================
+
+int SMDS_MeshElementIDFactory::GetFreeID()
+{
+  int ID;
+  do {
+    ID = SMDS_MeshIDFactory::GetFreeID();
+  } while ( MeshElement( ID ));
+  return ID;
+}
+
 //=======================================================================
 //function : ReleaseID
 //purpose  :