+ break;
+ }
+ case 2:
+ {
+ result = true;
+ QString groupName;
+ if ( toCreateElemGroup )
+ groupName = SMESH::UniqueName("DoubleElements");
+ for ( int i = 0; i < myGroups1.count(); i++ )
+ {
+ SMESH::SMESH_Group_var group =
+ aMeshEditor->DoubleElements( myGroups1[i], groupName.toLatin1().data() );
+ if ( group->_is_nil() )
+ {
+ if ( toCreateElemGroup )
+ result = false;
+ }
+ else
+ {
+ if ( _PTR(SObject) so = SMESH::FindSObject( group ))
+ anEntryList.append( so->GetID().c_str() );
+ }
+ }
+ break;
+ }