Common/DataModel/vtkUnstructuredGrid.cxx
//----------------------------------------------------------------------------
// Return the number of points from the cell defined by the maximum number of
// points/
Return the number of points from the cell defined by the maximum number of
points
Return the number of points from the cell defined by the maximum number of points
int vtkUnstructuredGrid::GetMaxCellSize()
{
  if (this->Connectivity && this->Locations)
  {
    MaxCellSize maxSize(this->Connectivity->GetPointer(),
                        static_cast<vtkIdType*>(this->Locations->GetVoidPointer(0)));
    vtkIdType numCells = this->Connectivity->GetNumberOfCells();
    vtkSMPTools::For(0,numCells, 10000, maxSize);
    return maxSize.MaxSize;
  }
  else if (this->Connectivity)
  {
    return this->Connectivity->GetMaxCellSize();
  }
  else
  {
    return 0;
  }
}
int vtkUnstructuredGrid :: GetMaxCellSize ( ) { if ( this -> Connectivity && this -> Locations ) { MaxCellSize maxSize ( this -> Connectivity -> GetPointer ( ) , static_cast < vtkIdType * > ( this -> Locations -> GetVoidPointer ( 0 ) ) ) ; vtkIdType numCells = this -> Connectivity -> GetNumberOfCells ( ) ; vtkSMPTools :: For ( 0 , numCells , 10000 , maxSize ) ; return maxSize . MaxSize ; } else if ( this -> Connectivity ) { return this -> Connectivity -> GetMaxCellSize ( ) ; } else { return 0 ; } }
Return the number of points from the cell defined by the maximum number of
points
Return the number of points from the cell defined by the maximum number of points
// Try threaded fast path first, it should always be called except in // exceptional situations.