X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverMED%2FDriverMED_Family.cxx;h=80b343e227f762e04e5baf3c4d78e9f5581ebb0c;hb=f4cb697fcc605c3b9cdb517f9b4eef6b8532dc1a;hp=d9ff5b249dcc2f766d2e8b65fa093af45b8e520a;hpb=71bc953009d275a48e997446bda1d14c6b570c16;p=modules%2Fsmesh.git diff --git a/src/DriverMED/DriverMED_Family.cxx b/src/DriverMED/DriverMED_Family.cxx index d9ff5b249..80b343e22 100644 --- a/src/DriverMED/DriverMED_Family.cxx +++ b/src/DriverMED/DriverMED_Family.cxx @@ -193,10 +193,10 @@ list DriverMED_Family::MakeFamilies aFamilies.push_back(aFreeVolumesFam); } - //DriverMED_FamilyPtr aNullFam (new DriverMED_Family); - //aNullFam->SetId(0); - //aNullFam->myType = SMDSAbs_All; - //aFamilies.push_back(aNullFam); + DriverMED_FamilyPtr aNullFam (new DriverMED_Family); + aNullFam->SetId(0); + aNullFam->myType = SMDSAbs_All; + aFamilies.push_back(aNullFam); return aFamilies; } @@ -211,20 +211,32 @@ DriverMED_Family::GetFamilyInfo(const MED::PWrapper& theWrapper, const MED::PMeshInfo& theMeshInfo) const { string aValue; + ostringstream aStr; - aStr << myId; + + aStr << "FAM_" << myId; + set::iterator aGrIter = myGroupNames.begin(); + for (; aGrIter != myGroupNames.end(); aGrIter++) + { + aStr << "_" << *aGrIter; + } + aValue = aStr.str(); + /* MED::TStringVector anAttrDescs (1, ""); // 1 attribute with empty description, MED::TIntVector anAttrIds (1, myId); // Id=0, MED::TIntVector anAttrVals (1, myId); // Value=0 - + */ + MED::PFamilyInfo anInfo = theWrapper->CrFamilyInfo(theMeshInfo, aValue, myId, - myGroupNames, - anAttrDescs, - anAttrIds, - anAttrVals); + myGroupNames); +/* + anAttrDescs, + anAttrIds, + anAttrVals); +*/ // cout << endl; // cout << "Groups: ";