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:
enk 2006-07-13 13:49:58 +00:00
parent 912e56d747
commit e9d9ec4df8

View File

@ -915,18 +915,17 @@ bool DriverMED_R_SMESHDS_Mesh::buildMeshGrille(const MED::PWrapper& theWrapper,
for(MED::TInt iDim=0;iDim<aMeshDim;iDim++) for(MED::TInt iDim=0;iDim<aMeshDim;iDim++)
aCoords[(int)iDim] = aMEDNodeCoord[(int)iDim]; aCoords[(int)iDim] = aMEDNodeCoord[(int)iDim];
aNode = myMesh->AddNodeWithID(aCoords[0],aCoords[1],aCoords[2],(int)iNode); aNode = myMesh->AddNodeWithID(aCoords[0],aCoords[1],aCoords[2],(int)iNode);
}
/* not implemented FAMILY if((aGrilleInfo->myFamNumNode).size() > 0){
TInt aFamNum = aGrilleInfo->GetFamNumNode(iNode);
TInt aFamNum = aNodeInfo->GetFamNum(iElem); if ( checkFamilyID ( aFamily, aFamNum ))
if ( checkFamilyID ( aFamily, aFamNum )) {
{ aFamily->AddElement(aNode);
aFamily->AddElement(aNode); aFamily->SetType(SMDSAbs_Node);
aFamily->SetType(SMDSAbs_Node); }
} }
*/ }
SMDS_MeshElement* anElement = NULL; SMDS_MeshElement* anElement = NULL;
MED::TIntVector aNodeIds; MED::TIntVector aNodeIds;
@ -971,6 +970,14 @@ bool DriverMED_R_SMESHDS_Mesh::buildMeshGrille(const MED::PWrapper& theWrapper,
default: default:
break; break;
} }
if((aGrilleInfo->myFamNum).size() > 0){
TInt aFamNum = aGrilleInfo->GetFamNum(iCell);
if ( checkFamilyID ( aFamily, aFamNum )){
aFamily->AddElement(anElement);
aFamily->SetType(anElement->GetType());
}
}
} }
return res; return res;