------------------------------------------------------------------------------
| 1245 | |
| 1246 | //------------------------------------------------------------------------------ |
| 1247 | bool vtkCellArray::ConvertToFixedSize32BitStorage() |
| 1248 | { |
| 1249 | if (this->IsStorageFixedSize32Bit()) |
| 1250 | { |
| 1251 | return true; |
| 1252 | } |
| 1253 | vtkNew<AffineArray32> offsets; |
| 1254 | offsets->ConstructBackend(this->GetCellSize(0), 0); |
| 1255 | offsets->SetNumberOfValues(this->GetNumberOfCells() + 1); |
| 1256 | vtkNew<AOSArray32> conn; |
| 1257 | bool result; |
| 1258 | this->Dispatch(ExtractAndInitialize{}, conn.Get(), result); |
| 1259 | if (!result) |
| 1260 | { |
| 1261 | return false; |
| 1262 | } |
| 1263 | |
| 1264 | this->SetData(offsets, conn); |
| 1265 | return true; |
| 1266 | } |
| 1267 | |
| 1268 | //------------------------------------------------------------------------------ |
| 1269 | bool vtkCellArray::ConvertToFixedSize64BitStorage() |