(myType == ModelAPI_AttributeTables::DOUBLE) ?
new TColStd_HArray1OfReal(0, aNewSize - 1) : Handle(TColStd_HArray1OfReal)();
bool* anOldBool = 0; // an not work with internal arrays because of different indexing
- Handle(TColStd_HArray1OfByte) aNewBool = (myType == ModelAPI_AttributeTables::BOOLEAN) ?
- // internal array for boolean has 8 times lower size
- new TColStd_HArray1OfByte(0, (aNewSize - 1)>>3) : Handle(TColStd_HArray1OfByte)();
Handle(TDataStd_BooleanArray) aBoolArray; // an existing array
Handle(TColStd_HArray1OfInteger) anOldInt, aNewInt =
(myType == ModelAPI_AttributeTables::INTEGER) ?
aBoolArray = Handle(TDataStd_BooleanArray)::DownCast(anArray);
for(int a = 0; a < aSize; a++)
anOldBool[a] = aBoolArray->Value(a);
- aBoolArray->SetInternalArray(aNewBool);
+ aBoolArray->Init(0, aNewSize - 1);
break;
}
case ModelAPI_AttributeTables::INTEGER: