mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
#16559 EDF - Changes to the Concatenate function: non regression test fails
fix group management
This commit is contained in:
parent
4cd676f92c
commit
1aaacad698
@ -2038,8 +2038,7 @@ SMESH_Group* SMESH_Mesh::AddGroup (const SMDSAbs_ElementType theType,
|
||||
SMESH_Group* aGroup = new SMESH_Group ( id, this, theType, theName, theShape, thePredicate );
|
||||
GetMeshDS()->AddGroup( aGroup->GetGroupDS() );
|
||||
_mapGroup[ id ] = aGroup;
|
||||
while ( _mapGroup.count( _groupId ))
|
||||
++_groupId;
|
||||
_groupId = 1 + _mapGroup.rbegin()->first;
|
||||
return aGroup;
|
||||
}
|
||||
|
||||
@ -2066,8 +2065,7 @@ SMESH_Group* SMESH_Mesh::AddGroup (SMESHDS_GroupBase* groupDS) throw(SALOME_Exce
|
||||
_mapGroup[ groupDS->GetID() ] = aGroup;
|
||||
GetMeshDS()->AddGroup( aGroup->GetGroupDS() );
|
||||
|
||||
while ( _mapGroup.count( _groupId ))
|
||||
++_groupId;
|
||||
_groupId = 1 + _mapGroup.rbegin()->first;
|
||||
|
||||
return aGroup;
|
||||
}
|
||||
@ -2093,8 +2091,8 @@ bool SMESH_Mesh::SynchronizeGroups()
|
||||
if ( !_mapGroup.count( _groupId ))
|
||||
_mapGroup[_groupId] = new SMESH_Group( groupDS );
|
||||
}
|
||||
while ( _mapGroup.count( _groupId ))
|
||||
++_groupId;
|
||||
if ( !_mapGroup.empty() )
|
||||
_groupId = 1 + _mapGroup.rbegin()->first;
|
||||
|
||||
return nbGroups < _mapGroup.size();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user