From 9767e4ad3ee537fb04aa0d8376069c19c82bde23 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 21 Aug 2012 14:26:08 +0000 Subject: [PATCH] 0021801: EDF 2143 SMESH: random order of groups returned by ExtrusionSweepObject2D set correct type of a new group --- src/SMESH/SMESH_MeshEditor.cxx | 3 +++ 1 file changed, 3 insertions(+) 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() ); } } -- 2.39.2