MED::PFamilyInfo anInfo;
string aValue = aStr.str();
- if(myId == 0){
+ if(myId == 0 || myGroupAttributVal == 0){
anInfo = theWrapper->CrFamilyInfo(theMeshInfo,
aValue,
myId,
}else{
MED::TStringVector anAttrDescs (1, ""); // 1 attribute with empty description,
MED::TIntVector anAttrIds (1, myId); // Id=0,
- MED::TIntVector anAttrVals (1);
- anAttrVals[0] = myGroupAttributVal != 0? myGroupAttributVal: myId;
+ MED::TIntVector anAttrVals (1, myGroupAttributVal);
anInfo = theWrapper->CrFamilyInfo(theMeshInfo,
aValue,
myId,
myGroupNames.clear();
myGroupNames.insert(string(theGroup->GetStoreName()));
- myGroupAttributVal = 0;
-
- if (theGroup->GetColorGroup()!=0)
- {
- myGroupAttributVal = theGroup->GetColorGroup();
- }
-
+ Quantity_Color aColor = theGroup->GetColor();
+ myGroupAttributVal = aColor.Hue();
}
//=============================================================================