<div>I&#39;m confused with the parameters of  <table><td class="memname">vtkUnstructuredGrid::GetCellNeighbors(vtkIdType cellId, vtkIdList* ptIds, vtkIdList* cellIds).</td></table></div>
<div><table><td></td><td>Let&#39;s say i have an unstructured grid of tetrahedra elements.</td></table></div>
<div>And i want to get the neighbors of cell with id==1.</div>
<div> </div>
<div>grid-&gt;GetCellNeighbors(cellId, ptIds, cellIds) //cellId should be ==1</div>
<div> </div>
<div> </div>
<div><span>1) cellid is the &quot;cell&quot; with id==1 for which i want its neighbors. As &quot;cell&quot; is the tetrahedron cell with id==1 or one of its faces (triangle cell)?</span></div>
<div><span>2) ptIds are cell&#39;s(tetrahedron&#39;s) points or one of its faces&#39; points?</span></div>
<div><span>3) cellIds are (neighboring) tetrahedra or (neighboring) faces?</span></div>
<div><span></span> </div>
<div>From an old post i found:</div>
<div>Dominik Szczerba wrote &quot;GetCellNeighbours needs cell face points and not cell points. It returns cell face neighbours and not all neighbours.&quot; (old post-2006 year).</div>
<div><br> </div>