[vtkusers] Fwd: problems with GetCellNeighbors

Bill Chivas noo134 at googlemail.com
Thu Jan 21 09:41:16 EST 2010


I'm confused with the parameters of
vtkUnstructuredGrid::GetCellNeighbors(vtkIdType
cellId, vtkIdList* ptIds, vtkIdList* cellIds).
Let's say i have an unstructured grid of tetrahedra elements.
And i want to get the neighbors of cell with id==1.

grid->GetCellNeighbors(cellId, ptIds, cellIds) //cellId should be ==1


1) cellid is the "cell" with id==1 for which i want its neighbors. As "cell"
is the tetrahedron cell with id==1 or one of its faces (triangle cell)?
2) ptIds are cell's(tetrahedron's) points or one of its faces' points?
3) cellIds are (neighboring) tetrahedra or (neighboring) faces?

>From an old post i found:
Dominik Szczerba wrote "GetCellNeighbours needs cell face points and not
cell points. It returns cell face neighbours and not all neighbours." (old
post-2006 year).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100121/5f79dc43/attachment.htm>


More information about the vtkusers mailing list