From: enk Date: Thu, 13 Jul 2006 13:49:58 +0000 (+0000) Subject: Fix for X-Git-Tag: T3_2_1_pre~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9d9ec4df8fad4ec7d471eee0c9b30255b665e26;p=modules%2Fsmesh.git Fix for Bug PAL12820: EDF207 SMESH and VISU: Visualization of groups on nodes and cells of a standard grid Bug PAL12613: Groups aren't read from the med files, containing mesh of MED_GRILLE_STANDARD type. --- diff --git a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx index 7e7c9b6ae..5d42d94b7 100644 --- a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx @@ -915,18 +915,17 @@ bool DriverMED_R_SMESHDS_Mesh::buildMeshGrille(const MED::PWrapper& theWrapper, for(MED::TInt iDim=0;iDimAddNodeWithID(aCoords[0],aCoords[1],aCoords[2],(int)iNode); - } - /* not implemented FAMILY - - TInt aFamNum = aNodeInfo->GetFamNum(iElem); - if ( checkFamilyID ( aFamily, aFamNum )) - { - aFamily->AddElement(aNode); - aFamily->SetType(SMDSAbs_Node); + if((aGrilleInfo->myFamNumNode).size() > 0){ + TInt aFamNum = aGrilleInfo->GetFamNumNode(iNode); + if ( checkFamilyID ( aFamily, aFamNum )) + { + aFamily->AddElement(aNode); + aFamily->SetType(SMDSAbs_Node); + } } - */ + } SMDS_MeshElement* anElement = NULL; MED::TIntVector aNodeIds; @@ -971,6 +970,14 @@ bool DriverMED_R_SMESHDS_Mesh::buildMeshGrille(const MED::PWrapper& theWrapper, default: break; } + + if((aGrilleInfo->myFamNum).size() > 0){ + TInt aFamNum = aGrilleInfo->GetFamNum(iCell); + if ( checkFamilyID ( aFamily, aFamNum )){ + aFamily->AddElement(anElement); + aFamily->SetType(anElement->GetType()); + } + } } return res;