mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
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.
This commit is contained in:
parent
912e56d747
commit
e9d9ec4df8
@ -915,18 +915,17 @@ bool DriverMED_R_SMESHDS_Mesh::buildMeshGrille(const MED::PWrapper& theWrapper,
|
||||
for(MED::TInt iDim=0;iDim<aMeshDim;iDim++)
|
||||
aCoords[(int)iDim] = aMEDNodeCoord[(int)iDim];
|
||||
aNode = myMesh->AddNodeWithID(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;
|
||||
|
Loading…
Reference in New Issue
Block a user