From: dmv Date: Mon, 20 Jul 2009 14:50:13 +0000 (+0000) Subject: 0020089: EDF 887 MED : Take into account 0D elements (MED_POINT1) X-Git-Tag: V5_1_3rc1~137 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4137f1c07becd07a56f741cce2c5da74d7d1afad;p=modules%2Fsmesh.git 0020089: EDF 887 MED : Take into account 0D elements (MED_POINT1) --- diff --git a/src/SMESH_I/SMESH_Gen_i_1.cxx b/src/SMESH_I/SMESH_Gen_i_1.cxx index bb0b0c705..bcd0cc91b 100644 --- a/src/SMESH_I/SMESH_Gen_i_1.cxx +++ b/src/SMESH_I/SMESH_Gen_i_1.cxx @@ -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