]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021801: EDF 2143 SMESH: random order of groups returned by ExtrusionSweepObject2D
authoreap <eap@opencascade.com>
Tue, 21 Aug 2012 14:26:08 +0000 (14:26 +0000)
committereap <eap@opencascade.com>
Tue, 21 Aug 2012 14:26:08 +0000 (14:26 +0000)
  set correct type of a new group

src/SMESH/SMESH_MeshEditor.cxx

index d9dc4f61f836e760b9645ae33e31eeed217e7905..6364b0f4c71356cc7c3e42507cac0308acb1d489 100644 (file)
@@ -5986,6 +5986,9 @@ SMESH_MeshEditor::generateGroups(const SMESH_SequenceOfElemPtr& nodeGens,
       // make a SMESH_Groups
       mesh->AddGroup( newGroupDS );
       newGroupIDs->push_back( newGroupDS->GetID() );
+
+      // set group type
+      newGroupDS->SetType( newGroupDS->GetElements()->next()->GetType() );
     }
   }