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

Method GetMaxSpatialDimension

Common/DataModel/vtkUnstructuredGrid.cxx:438–450  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

436
437//------------------------------------------------------------------------------
438int 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//------------------------------------------------------------------------------
453int vtkUnstructuredGrid::GetMinSpatialDimension()

Callers

nothing calls this directly

Calls 5

GetDimensionFunction · 0.70
maxFunction · 0.50
GetNumberOfValuesMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected