Salome HOME
0020089: EDF 887 MED : Take into account 0D elements (MED_POINT1)
authordmv <dmv@opencascade.com>
Mon, 20 Jul 2009 14:50:13 +0000 (14:50 +0000)
committerdmv <dmv@opencascade.com>
Mon, 20 Jul 2009 14:50:13 +0000 (14:50 +0000)
src/SMESH_I/SMESH_Gen_i_1.cxx

index bb0b0c7..bcd0cc9 100644 (file)
@@ -674,7 +674,7 @@ SALOMEDS::SObject_ptr SMESH_Gen_i::PublishGroup (SALOMEDS::Study_ptr    theStudy
     }
     int aType = (int)theGroup->GetType();
     const char* aRootNames[] = {
-      "Compound Groups", "Groups of Nodes",
+      "Compound Groups", "Groups of Nodes", "Group of 0D Elements",
       "Groups of Edges", "Groups of Faces", "Groups of Volumes" };
 
     // Currently, groups with heterogenous content are not supported
@@ -684,7 +684,7 @@ SALOMEDS::SObject_ptr SMESH_Gen_i::PublishGroup (SALOMEDS::Study_ptr    theStudy
       // Find or create groups root
       SALOMEDS::SObject_var aRootSO = publish (theStudy, CORBA::Object::_nil(),
                                                aMeshSO, aRootTag, 0, false );
-      if ( aType < 5 )
+      if ( aType < 6 )
         SetName( aRootSO, aRootNames[aType] );
 
       // Add new group to corresponding sub-tree