MCPcopy Create free account
hub / github.com/Kitware/VTK / GetMaxSpatialDimension

Method GetMaxSpatialDimension

Common/DataModel/vtkDataSet.cxx:484–494  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

482
483//------------------------------------------------------------------------------
484int 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//------------------------------------------------------------------------------
497int vtkDataSet::GetMinSpatialDimension()

Callers 2

PointGradientsMethod · 0.45
RequestDataMethod · 0.45

Calls 4

GetDistinctCellTypesMethod · 0.95
GetDimensionFunction · 0.70
maxFunction · 0.50
GetCellTypeMethod · 0.45

Tested by

no test coverage detected