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