[vtkusers] vtkContourFilter produces no data as its output

Rakesh Patil rakeshthp at in.com
Mon Jan 4 04:56:51 EST 2010


Hello thereAfter debugging for a long time, i found out that data exists till this part of code vtkPoints *pts = vtkPoints::New(); pts>SetData(scatterdata); // scatterdata is an instance of vtkDoubleArray with three components unsigned int numids = scatterdata>GetNumberOfTuples(); vtkPolyVertex *poly = vtkPolyVertex::New(); poly>GetPointIds()>SetNumberOfIds(numids); for ( unsigned int i = 0; i < numids; i++ )poly>GetPointIds()>SetId(i,i); vtkUnstructuredGrid *ugrid = vtkUnstructuredGrid::New(); ugrid>Allocate(1); ugrid>InsertNextCell (poly>GetCellType(), poly>GetP ointIds()); ugrid>SetPoints(pts); vtkDelaunay2D *del = vtkDelaunay2D::New(); del>SetInput(ugrid); del>SetTolerance(0.001);Once i execute, the following code,vtkContourFilter *cf = vtkContourFilter::New(); cf>SetInputConnection(del>GetOutputPort()); cf>GenerateValues(10, 5, 20);cf>Update();all data vanishes.. I mean to say that, initially, the grid had, 22,000 points.. After traingulating, i got 20000 of cells.. Buta
 fter executing the contour filter class, i get 0 cells and 0 points as output.. Where the data disappears all of a sudden, i'm not able to understand.. Please i need a guidance from the most experienced and senior person.. My mind is totally blank..Thanks in advanceDear vtkusers ! Get Yourself a cool, short @in.com Email ID now!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100104/07ee1569/attachment.htm>


More information about the vtkusers mailing list