bos #29941 [CEA 29940] concatenate doesn't create node groups if mesh is empty

This commit is contained in:
eap 2022-05-12 12:58:47 +03:00 committed by vsr
parent a81fac1d80
commit f1a810b957

View File

@ -2613,9 +2613,6 @@ 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() )