------------------------------------------------------------------------------
| 436 | |
| 437 | //------------------------------------------------------------------------------ |
| 438 | int vtkUnstructuredGrid::GetMaxSpatialDimension() |
| 439 | { |
| 440 | if (auto cellTypes = this->GetDistinctCellTypesArray()) |
| 441 | { |
| 442 | int maxDim = 0; |
| 443 | for (vtkIdType i = 0; i < cellTypes->GetNumberOfValues(); ++i) |
| 444 | { |
| 445 | maxDim = std::max(maxDim, vtkCellTypeUtilities::GetDimension(cellTypes->GetValue(i))); |
| 446 | } |
| 447 | return maxDim; |
| 448 | } |
| 449 | return 0; |
| 450 | } |
| 451 | |
| 452 | //------------------------------------------------------------------------------ |
| 453 | int vtkUnstructuredGrid::GetMinSpatialDimension() |
nothing calls this directly
no test coverage detected