[vtkusers] vtkUnstructuredGrid::GetCellNeighbors

Bill Chivas noo134 at googlemail.com
Tue Jan 19 05:19:28 EST 2010


Correction:
cellIds:  ids of neighboring cells?

Another question: the "neighboring cells" are hexahedrons (NOT the faces of
them), right?
2010/1/19 Bill Chivas <noo134 at googlemail.com>

> Hello all,
>
> i have a grid of hexahedrons and i would like to get the neighbors of a
> particular cell.
> I found there is a method for that.
>
>   GetCellNeighbors (  vtkIdType<http://davis.lbl.gov/Manuals/VTK-4.5/vtkSystemIncludes_8h.html#a109>
>   *cellId*,   vtkIdList<http://davis.lbl.gov/Manuals/VTK-4.5/classvtkIdList.html>*
> *ptIds*,   vtkIdList<http://davis.lbl.gov/Manuals/VTK-4.5/classvtkIdList.html>*
> *cellIds*  )
>
> cellId: id of the particular cell for which i want to get the neighbors
> ptsIds: ids of the points of that particular cell
> cellIds: ids of all cells of the grid?
>
> Am i refering correctly the arguments?
> Could someone place a small piece of code?
>
> Thanks,
> Bill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100119/0608d1d9/attachment.htm>


More information about the vtkusers mailing list