------------------------------------------------------------------------------
| 1267 | |
| 1268 | //------------------------------------------------------------------------------ |
| 1269 | bool vtkCellArray::ConvertToFixedSize64BitStorage() |
| 1270 | { |
| 1271 | if (this->IsStorageFixedSize64Bit()) |
| 1272 | { |
| 1273 | return true; |
| 1274 | } |
| 1275 | vtkNew<AffineArray64> offsets; |
| 1276 | offsets->ConstructBackend(this->GetCellSize(0), 0); |
| 1277 | offsets->SetNumberOfValues(this->GetNumberOfCells() + 1); |
| 1278 | vtkNew<AOSArray64> conn; |
| 1279 | bool result; |
| 1280 | this->Dispatch(ExtractAndInitialize{}, conn.Get(), result); |
| 1281 | if (!result) |
| 1282 | { |
| 1283 | return false; |
| 1284 | } |
| 1285 | |
| 1286 | this->SetData(offsets, conn); |
| 1287 | return true; |
| 1288 | } |
| 1289 | |
| 1290 | //------------------------------------------------------------------------------ |
| 1291 | bool vtkCellArray::ConvertToFixedSizeDefaultStorage() |