0021801: EDF 2143 SMESH: random order of groups returned by ExtrusionSweepObject2D

set correct type of a new group
This commit is contained in:
eap 2012-08-21 14:26:08 +00:00
parent ff3bbcc0c9
commit 9767e4ad3e

View File

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