Salome HOME
bos #29941 [CEA 29940] concatenate doesn't create node groups if mesh is empty
authoreap <eap@opencascade.com>
Thu, 12 May 2022 09:58:47 +0000 (12:58 +0300)
committereap <eap@opencascade.com>
Thu, 12 May 2022 09:58:47 +0000 (12:58 +0300)
src/SMESH_I/SMESH_Gen_i.cxx

index b255d468e476aa93a221bc5259cd810f380ea920..b21d2f11f8fea13a651a7ef52a1cbe59d985f9bf 100644 (file)
@@ -2613,9 +2613,6 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::ListOfIDSources& theMeshesArray,
 
     // 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 );
     elemIt = initImpl->GetElements( theMeshesArray[i], SMESH::ALL );
     while ( elemIt->more() )