mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-13 04:14:34 +05:00
take into account orphan nodes at mesh concatenation
This commit is contained in:
parent
826ee93fae
commit
9d59c1d055
@ -2027,6 +2027,22 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::mesh_array& theMeshesArray,
|
|||||||
}
|
}
|
||||||
}//elems loop
|
}//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();
|
aListOfGroups = anInitImpl->GetGroups();
|
||||||
SMESH::SMESH_GroupBase_ptr aGroup;
|
SMESH::SMESH_GroupBase_ptr aGroup;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user