mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
BUG: mesh.Append( nodeGroup ) adds nodes twice
This commit is contained in:
parent
6d7121da90
commit
db1df018eb
@ -2542,7 +2542,7 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::ListOfIDSources& theMeshesArray,
|
|||||||
continue;
|
continue;
|
||||||
initImpl->Load();
|
initImpl->Load();
|
||||||
|
|
||||||
// assure that IDs increments by one during iteration
|
// assure that IDs increment by one during iteration
|
||||||
::SMESH_Mesh& initLocMesh = initImpl->GetImpl();
|
::SMESH_Mesh& initLocMesh = initImpl->GetImpl();
|
||||||
SMESHDS_Mesh* initMeshDS = initLocMesh.GetMeshDS();
|
SMESHDS_Mesh* initMeshDS = initLocMesh.GetMeshDS();
|
||||||
if ( initMeshDS->MaxNodeID() > initMeshDS->NbNodes() ||
|
if ( initMeshDS->MaxNodeID() > initMeshDS->NbNodes() ||
|
||||||
@ -2567,6 +2567,9 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::ListOfIDSources& theMeshesArray,
|
|||||||
|
|
||||||
// copy elements
|
// copy elements
|
||||||
|
|
||||||
|
SMESH::array_of_ElementType_var srcElemTypes = theMeshesArray[i]->GetTypes();
|
||||||
|
if ( srcElemTypes->length() == 1 && srcElemTypes[0] == SMESH::NODE ) // group of nodes
|
||||||
|
continue;
|
||||||
std::vector< const SMDS_MeshElement* > newElems( initMeshDS->NbElements() + 1, 0 );
|
std::vector< const SMDS_MeshElement* > newElems( initMeshDS->NbElements() + 1, 0 );
|
||||||
elemIt = initImpl->GetElements( theMeshesArray[i], SMESH::ALL );
|
elemIt = initImpl->GetElements( theMeshesArray[i], SMESH::ALL );
|
||||||
while ( elemIt->more() )
|
while ( elemIt->more() )
|
||||||
|
Loading…
Reference in New Issue
Block a user