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

Method GetMinSpatialDimension

Common/DataModel/vtkDataSet.cxx:497–507  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

495
496//------------------------------------------------------------------------------
497int vtkDataSet::GetMinSpatialDimension()
498{
499 vtkNew<vtkCellTypes> cellTypes;
500 this->GetDistinctCellTypes(cellTypes);
501 int minDim = 3;
502 for (vtkIdType i = 0; i < cellTypes->GetNumberOfTypes(); ++i)
503 {
504 minDim = std::min(vtkCellTypeUtilities::GetDimension(cellTypes->GetCellType(i)), minDim);
505 }
506 return minDim;
507}
508
509//------------------------------------------------------------------------------
510void vtkDataSet::SetCellOrderAndRationalWeights(vtkIdType cellId, vtkGenericCell* cell)

Callers 1

RequestDataMethod · 0.45

Calls 4

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

Tested by

no test coverage detected