Servers/Filters/vtkRedistributePolyData.cxx
void vtkRedistributePolyData::CopyCellBlockDataArrays
(vtkDataSetAttributes* fromPd, vtkDataSetAttributes* toPd,
 vtkIdType numToCopy, vtkIdType startCell, 
 vtkIdType fromOffset, vtkIdType toOffset, int myId )
//*******************************************************************
{

  vtkDataArray* DataFrom;
  vtkDataArray* DataTo;

  int numArrays = fromPd->GetNumberOfArrays();

  for (int i=0; i<numArrays; i++)
    {
    DataFrom = fromPd->GetArray(i);
    DataTo = toPd->GetArray(i);

    this->CopyBlockArrays (DataFrom, DataTo, numToCopy, startCell, 
                           fromOffset, toOffset, myId);
    } 

}
//*****************************************************************
// Copy the attribute data from one id to another. Make sure 
//   CopyAllocate() has been invoked before using this method.
Copy the attribute data from one id to another. Make sure
CopyAllocate() has been invoked before using this method.
Copy the attribute data from one id to another . Make sure CopyAllocate () has been invoked before using this method .
void vtkRedistributePolyData::CopyCellBlockDataArrays
(vtkDataSetAttributes* fromPd, vtkDataSetAttributes* toPd,
 vtkIdType numToCopy, vtkIdType startCell, 
 vtkIdType fromOffset, vtkIdType toOffset, int myId )
{
  vtkDataArray* DataFrom;
  vtkDataArray* DataTo;
  int numArrays = fromPd->GetNumberOfArrays();
  for (int i=0; i<numArrays; i++)
    {
    DataFrom = fromPd->GetArray(i);
    DataTo = toPd->GetArray(i);
    this->CopyBlockArrays (DataFrom, DataTo, numToCopy, startCell, 
                           fromOffset, toOffset, myId);
    } 
}
void vtkRedistributePolyData :: CopyCellBlockDataArrays ( vtkDataSetAttributes * fromPd , vtkDataSetAttributes * toPd , vtkIdType numToCopy , vtkIdType startCell , vtkIdType fromOffset , vtkIdType toOffset , int myId ) { vtkDataArray * DataFrom ; vtkDataArray * DataTo ; int numArrays = fromPd -> GetNumberOfArrays ( ) ; for ( int i = 0 ; i < numArrays ; i ++ ) { DataFrom = fromPd -> GetArray ( i ) ; DataTo = toPd -> GetArray ( i ) ; this -> CopyBlockArrays ( DataFrom , DataTo , numToCopy , startCell , fromOffset , toOffset , myId ) ; } }
Copy the attribute data from one id to another.
Copy the attribute data from one id to another .
//*******************************************************************