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

Method GetMaxCellSize

Common/DataModel/vtkCellArray.cxx:1354–1364  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Returns the size of the largest cell. The size is the number of points defining the cell.

Source from the content-addressed store, hash-verified

1352// Returns the size of the largest cell. The size is the number of points
1353// defining the cell.
1354int vtkCellArray::GetMaxCellSize()
1355{
1356 const vtkIdType numCells = this->GetNumberOfCells();
1357 // We use THRESHOLD to test if the data size is small enough
1358 // to execute the functor serially. This is faster.
1359 // and also potentially avoids nested multithreading which creates race conditions.
1360 FindMaxCell finder{ this };
1361 vtkSMPTools::For(0, numCells, vtkSMPTools::THRESHOLD, finder);
1362
1363 return static_cast<int>(finder.Result);
1364}
1365
1366//------------------------------------------------------------------------------
1367unsigned long vtkCellArray::GetActualMemorySize() const

Callers

nothing calls this directly

Calls 2

ForFunction · 0.50
GetNumberOfCellsMethod · 0.45

Tested by

no test coverage detected