Salome HOME
23627: [IMACS] ASERIS: project point to the mesh and create a slot
[modules/smesh.git] / src / SMESH / SMESH_Group.cxx
index 23a4955c271268b2b3561fdaff414e2453dbcc49..35c7192ee72315af8d8d45a4b70256ab4deed5c5 100644 (file)
@@ -96,3 +96,14 @@ void SMESH_Group::SetName (const char* theName)
   myName = theName;
   myGroupDS->SetStoreName( theName );
 }
+
+//================================================================================
+/*!
+ * \brief Return group ID. It is negative if no SMESHDS_GroupBase exist
+ */
+//================================================================================
+
+int SMESH_Group::GetID() const
+{
+  return myGroupDS ? myGroupDS->GetID() : -1;
+}