Hi vtkusers,<br><br>I&#39;m need to get cell neighbors of a polydata type. I&#39;m try to use GetCellNeighbors() method, but my application &quot;crashes&quot; when I use it.<br>My code construction is simple (I think), and just like this:<br>
<br>&nbsp;// Creates a polydata mesh <br>&nbsp;vtkPolyData *polyDel = vtkPolyData::New();<br>&nbsp; &nbsp; polyDel-&gt;SetPoints(pointsDel);<br>&nbsp;&nbsp;&nbsp; polyDel-&gt;SetPolys(cellDel);<br>&nbsp;&nbsp;&nbsp; polyDel-&gt;GetPointData()-&gt;SetScalars(doubleArray);<br>
&nbsp;&nbsp;&nbsp; polyDel-&gt;BuildLinks();<br>&nbsp;&nbsp;&nbsp; polyDel-&gt;Update();<br><br>&nbsp;&nbsp;&nbsp; identifySurfaces(polyDel);<br><br>-----------------------------------<br><br>void identifySurfaces(polyDel){<br>&nbsp;&nbsp;&nbsp; (...)<br>&nbsp;&nbsp;&nbsp; vtkIdList *nCell&nbsp; = vtkIdList::New();<br>
&nbsp;&nbsp;&nbsp; vtkIdList *npoint = vtkIdList::New();<br>&nbsp;&nbsp;&nbsp; poly-&gt;GetCellNeighbors(currentCell,npoint,nCell);<br>&nbsp;&nbsp;&nbsp; (...)<br>}<br><br>When identifySurfaces call poly-&gt;GetCellNeighbors(currentCell,npoint,nCell) application &quot;crash&quot; with Segmentation fault error.<br>
<br>Any suggestions?<br><br><br>Thanks.<br clear="all"><br>-- <br>José Marcos Pilato Jr.<br><br>