Common/DataModel/vtkUnstructuredGrid.cxx
//----------------------------------------------------------------------------
// Add a new cell to the cell data structure (after cell links have been
// built). This method adds the cell and then updates the links from the points
// to the cells. (Memory is allocated as necessary.) Note that the dataset must
// be in "Editable" mode.
Add a new cell to the cell data structure (after cell links have been
built). This method adds the cell and then updates the links from the points
to the cells. (Memory is allocated as necessary.) Note that the dataset must
be in "Editable" mode.
Add a new cell to the cell data structure ( after cell links have been built ) . This method adds the cell and then updates the links from the points to the cells . ( Memory is allocated as necessary . ) Note that the dataset must be in " Editable " mode .
vtkIdType vtkUnstructuredGrid::InsertNextLinkedCell(int type, int npts,
                                                    const vtkIdType pts[])
{
  vtkIdType i, id;
  id = this->InsertNextCell(type,npts,pts);
  vtkCellLinks *clinks = static_cast<vtkCellLinks*>(this->Links);
  for (i=0; i<npts; i++)
  {
    clinks->ResizeCellList(pts[i],1);
    clinks->AddCellReference(id,pts[i]);
  }
  return id;
}
vtkIdType vtkUnstructuredGrid :: InsertNextLinkedCell ( int type , int npts , const vtkIdType pts [ ] ) { vtkIdType i , id ; id = this -> InsertNextCell ( type , npts , pts ) ; vtkCellLinks * clinks = static_cast < vtkCellLinks * > ( this -> Links ) ; for ( i = 0 ; i < npts ; i ++ ) { clinks -> ResizeCellList ( pts [ i ] , 1 ) ; clinks -> AddCellReference ( id , pts [ i ] ) ; } return id ; }
Add a new cell to the cell data structure (after cell links have been
built).
Add a new cell to the cell data structure ( after cell links have been built ) .