[vtkusers] vtkPolyData::GetCellNeighbors call error
Junior Pilato
junior.pilato at gmail.com
Thu Mar 6 15:04:14 EST 2008
Hi vtkusers,
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.
My code construction is simple (I think), and just like this:
// Creates a polydata mesh
vtkPolyData *polyDel = vtkPolyData::New();
polyDel->SetPoints(pointsDel);
polyDel->SetPolys(cellDel);
polyDel->GetPointData()->SetScalars(doubleArray);
polyDel->BuildLinks();
polyDel->Update();
identifySurfaces(polyDel);
-----------------------------------
void identifySurfaces(polyDel){
(...)
vtkIdList *nCell = vtkIdList::New();
vtkIdList *npoint = vtkIdList::New();
poly->GetCellNeighbors(currentCell,npoint,nCell);
(...)
}
When identifySurfaces call poly->GetCellNeighbors(currentCell,npoint,nCell)
application "crash" with Segmentation fault error.
Any suggestions?
Thanks.
--
José Marcos Pilato Jr.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080306/84df2a08/attachment.htm>
More information about the vtkusers
mailing list