From: eap Date: Tue, 21 Aug 2012 14:26:08 +0000 (+0000) Subject: 0021801: EDF 2143 SMESH: random order of groups returned by ExtrusionSweepObject2D X-Git-Tag: V6_6_0a1~201 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9767e4ad3ee537fb04aa0d8376069c19c82bde23;p=modules%2Fsmesh.git 0021801: EDF 2143 SMESH: random order of groups returned by ExtrusionSweepObject2D set correct type of a new group --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index d9dc4f61f..6364b0f4c 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -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() ); } }