------------------------------------------------------------------------------
| 279 | |
| 280 | //------------------------------------------------------------------------------ |
| 281 | inline vtkIdList* vtkCellIterator::GetSerializedCellFaces() |
| 282 | { |
| 283 | if (!this->CheckCache(FacesFlag)) |
| 284 | { |
| 285 | this->FetchFaces(); |
| 286 | this->SetCache(FacesFlag); |
| 287 | } |
| 288 | // Export Legacy Format |
| 289 | vtkNew<vtkIdTypeArray> tmp; |
| 290 | this->Faces->ExportLegacyFormat(tmp); |
| 291 | this->LegacyFacesContainer->Initialize(); |
| 292 | this->LegacyFacesContainer->InsertNextId(this->Faces->GetNumberOfCells()); |
| 293 | for (vtkIdType idx = 0; idx < tmp->GetNumberOfValues(); ++idx) |
| 294 | { |
| 295 | this->LegacyFacesContainer->InsertNextId(tmp->GetValue(idx)); |
| 296 | } |
| 297 | return this->LegacyFacesContainer; |
| 298 | } |
| 299 | |
| 300 | //------------------------------------------------------------------------------ |
| 301 | inline vtkIdType vtkCellIterator::GetNumberOfPoints() |