------------------------------------------------------------------------------
| 451 | |
| 452 | //------------------------------------------------------------------------------ |
| 453 | int vtkUnstructuredGrid::GetMinSpatialDimension() |
| 454 | { |
| 455 | if (auto cellTypes = this->GetDistinctCellTypesArray()) |
| 456 | { |
| 457 | int minDim = 3; |
| 458 | for (vtkIdType i = 0; i < cellTypes->GetNumberOfValues(); ++i) |
| 459 | { |
| 460 | minDim = std::min(minDim, vtkCellTypeUtilities::GetDimension(cellTypes->GetValue(i))); |
| 461 | } |
| 462 | return minDim; |
| 463 | } |
| 464 | return 3; |
| 465 | } |
| 466 | |
| 467 | //------------------------------------------------------------------------------ |
| 468 | vtkIdType vtkUnstructuredGrid::GetNumberOfCells() |
nothing calls this directly
no test coverage detected