------------------------------------------------------------------------------ Returns the size of the largest cell. The size is the number of points defining the cell.
| 1352 | // Returns the size of the largest cell. The size is the number of points |
| 1353 | // defining the cell. |
| 1354 | int 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 | //------------------------------------------------------------------------------ |
| 1367 | unsigned long vtkCellArray::GetActualMemorySize() const |
nothing calls this directly
no test coverage detected