------------------------------------------------------------------------------
| 1179 | |
| 1180 | //------------------------------------------------------------------------------ |
| 1181 | bool vtkCellArray::ConvertTo32BitStorage() |
| 1182 | { |
| 1183 | if (this->IsStorage32Bit()) |
| 1184 | { |
| 1185 | return true; |
| 1186 | } |
| 1187 | vtkNew<AOSArray32> offsets; |
| 1188 | vtkNew<AOSArray32> conn; |
| 1189 | bool result; |
| 1190 | this->Dispatch(ExtractAndInitialize{}, offsets.Get(), conn.Get(), result); |
| 1191 | if (!result) |
| 1192 | { |
| 1193 | return false; |
| 1194 | } |
| 1195 | |
| 1196 | this->SetData(offsets, conn); |
| 1197 | return true; |
| 1198 | } |
| 1199 | |
| 1200 | //------------------------------------------------------------------------------ |
| 1201 | bool vtkCellArray::ConvertTo64BitStorage() |