From: enk Date: Wed, 2 Mar 2005 12:50:26 +0000 (+0000) Subject: Bug PAL8331: REGRESSION import mesh in "MED 2.2" format. X-Git-Tag: T_3_0_0_a1~30 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=f488d851d8497603ad57ba50438f6423c5f24993;ds=sidebyside Bug PAL8331: REGRESSION import mesh in "MED 2.2" format. In the process of family creation (with Id=0) we don't need in attribute description, it's specific of creation of MED2.2 (for family with Id=0). --- diff --git a/src/DriverMED/DriverMED_Family.cxx b/src/DriverMED/DriverMED_Family.cxx index 2c6a61719..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; } @@ -222,18 +222,21 @@ DriverMED_Family::GetFamilyInfo(const MED::PWrapper& theWrapper, } 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: ";