mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-12 23:14:33 +05:00
take into account orphan nodes at mesh concatenation
This commit is contained in:
parent
826ee93fae
commit
9d59c1d055
@ -2026,7 +2026,23 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::mesh_array& theMeshesArray,
|
||||
}
|
||||
}
|
||||
}//elems loop
|
||||
|
||||
|
||||
// copy orphan nodes
|
||||
SMDS_NodeIteratorPtr itNodes = anInitMeshDS->nodesIterator();
|
||||
while ( itNodes->more() )
|
||||
{
|
||||
const SMDS_MeshNode* aNode = itNodes->next();
|
||||
if ( aNode->NbInverseElements() == 0 )
|
||||
{
|
||||
const SMDS_MeshNode* aNewNode =
|
||||
aNewMeshDS->AddNode(aNode->X(), aNode->Y(), aNode->Z());
|
||||
nodesMap.insert( make_pair(aNode->GetID(), aNewNode->GetID()) );
|
||||
if( theCommonGroups )
|
||||
anIDsNodes[anNbNodes++] = aNewNode->GetID();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
aListOfGroups = anInitImpl->GetGroups();
|
||||
SMESH::SMESH_GroupBase_ptr aGroup;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user