Common/DataModel/vtkUnstructuredGrid.cxx
//----------------------------------------------------------------------------
// Fill container with indices of cells which match given type.
Fill container with indices of cells which match given type.
Fill container with indices of cells which match given type .
void vtkUnstructuredGrid::GetIdsOfCellsOfType(int type, vtkIdTypeArray *array)
{
  for (int cellId = 0; cellId < this->GetNumberOfCells(); cellId++)
  {
    if (static_cast<int>(Types->GetValue(cellId)) == type)
    {
      array->InsertNextValue(cellId);
    }
  }
}
void vtkUnstructuredGrid :: GetIdsOfCellsOfType ( int type , vtkIdTypeArray * array ) { for ( int cellId = 0 ; cellId < this -> GetNumberOfCells ( ) ; cellId ++ ) { if ( static_cast < int > ( Types -> GetValue ( cellId ) ) == type ) { array -> InsertNextValue ( cellId ) ; } } }
Fill container with indices of cells which match given type.
Fill container with indices of cells which match given type .