+ 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;
+ }
+ case 3:
+ {
+ bool createJointElems = myCheckBox1->isChecked();
+ bool onAllBoundaries = myCheckBox2->isChecked();
+
+ SMESH::ListOfGroups_var g1 = new SMESH::ListOfGroups();
+ g1->length( myGroups1.count() );
+ for ( int i = 0; i < myGroups1.count(); i++ )
+ g1[i] = myGroups1[i];
+
+ result = aMeshEditor->DoubleNodesOnGroupBoundaries( g1.in(), createJointElems, onAllBoundaries );
+
+ break;