mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 00:24:17 +05:00
0021897: EDF 1495 SMESH : Problem with groups when building a compound with medballs
Make control variable of for different in outer (on meshes) and inner (on groups) loops.
This commit is contained in:
parent
c5c930fa65
commit
afd264a070
@ -2213,6 +2213,7 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::mesh_array& theMeshesArray,
|
||||
SMESH_Mesh_i* anInitImpl = dynamic_cast<SMESH_Mesh_i*>( GetServant( anInitMesh ).in() );
|
||||
if ( anInitImpl ) {
|
||||
::SMESH_Mesh& aInitLocMesh = anInitImpl->GetImpl();
|
||||
aInitLocMesh.Load();
|
||||
SMESHDS_Mesh* anInitMeshDS = aInitLocMesh.GetMeshDS();
|
||||
|
||||
TIDsMap nodesMap;
|
||||
@ -2309,7 +2310,7 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::mesh_array& theMeshesArray,
|
||||
}
|
||||
}
|
||||
}
|
||||
}//elems loop
|
||||
} //elems loop
|
||||
|
||||
// copy orphan nodes
|
||||
SMDS_NodeIteratorPtr itNodes = anInitMeshDS->nodesIterator();
|
||||
@ -2411,8 +2412,8 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::mesh_array& theMeshesArray,
|
||||
}
|
||||
|
||||
// check that current group name and type don't have identical ones in union mesh
|
||||
for (int i = 0; i < aListOfGroups->length(); i++) {
|
||||
aGroup = aListOfGroups[i];
|
||||
for (int iG = 0; iG < aListOfGroups->length(); iG++) {
|
||||
aGroup = aListOfGroups[iG];
|
||||
aListOfNewGroups.clear();
|
||||
aGroupType = aGroup->GetType();
|
||||
aGroupName = aGroup->GetName();
|
||||
|
Loading…
Reference in New Issue
Block a user