------------------------------------------------------------------------------
| 482 | |
| 483 | //------------------------------------------------------------------------------ |
| 484 | int vtkDataSet::GetMaxSpatialDimension() |
| 485 | { |
| 486 | vtkNew<vtkCellTypes> cellTypes; |
| 487 | this->GetDistinctCellTypes(cellTypes); |
| 488 | int maxDim = 0; |
| 489 | for (vtkIdType i = 0; i < cellTypes->GetNumberOfTypes(); ++i) |
| 490 | { |
| 491 | maxDim = std::max(vtkCellTypeUtilities::GetDimension(cellTypes->GetCellType(i)), maxDim); |
| 492 | } |
| 493 | return maxDim; |
| 494 | } |
| 495 | |
| 496 | //------------------------------------------------------------------------------ |
| 497 | int vtkDataSet::GetMinSpatialDimension() |
no test coverage detected