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

Method GetMinSpatialDimension

Common/DataModel/vtkUnstructuredGrid.cxx:453–465  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

451
452//------------------------------------------------------------------------------
453int 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//------------------------------------------------------------------------------
468vtkIdType vtkUnstructuredGrid::GetNumberOfCells()

Callers

nothing calls this directly

Calls 5

GetDimensionFunction · 0.70
minFunction · 0.50
GetNumberOfValuesMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected