------------------------------------------------------------------------------
| 457 | |
| 458 | //------------------------------------------------------------------------------ |
| 459 | void vtkDataSet::GetDistinctCellTypes(vtkCellTypes* types) |
| 460 | { |
| 461 | DistinctCellTypesWorker worker(this); |
| 462 | vtkSMPTools::For(0, this->GetNumberOfCells(), worker); |
| 463 | if (types) |
| 464 | { |
| 465 | types->Reset(); |
| 466 | types->Allocate(static_cast<vtkIdType>(worker.DistinctCellTypes.size())); |
| 467 | for (const auto& distinctCellType : worker.DistinctCellTypes) |
| 468 | { |
| 469 | types->InsertNextType(distinctCellType); |
| 470 | } |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | //------------------------------------------------------------------------------ |
| 475 | void vtkDataSet::GetCellPoints( |