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,
const SMESHDS_Mesh* theMesh,
const SMDSAbs_ElementType theType):
myID(theID), myMesh(theMesh), myType(theType), myStoreName(""),
- myCurIndex(0), myCurID(-1)
+ myCurIndex(0), myCurID(-1), myColorGroup(0)
{
}