Hello there<br><br>After debugging for a long time, i found out that data exists till this part of code<br><br><br> vtkPoints *pts = vtkPoints::New();<br> pts->SetData(scatter_data); // scatter_data is an instance of vtkDoubleArray with three components<br><br> unsigned int num_ids = scatter_data->GetNumberOfTuples();<br><br> vtkPolyVertex *poly = vtkPolyVertex::New();<br> poly->GetPointIds()->SetNumberOfIds(num_ids);<br><br> for ( unsigned int i = 0; i < num_ids; i++ )<br> poly->GetPointIds()->SetId(i,i);<br><br> vtkUnstructuredGrid *ugrid = vtkUnstructuredGrid::New();<br> ugrid->Allocate(1);<br> ugrid->InsertNextCell (poly->GetCellType(), poly->GetP ointIds());<br> ugrid->SetPoints(pts);<br><br> vtkDelaunay2D *del = vtkDelaunay2D::New();<br> del->SetInput(ugrid);<br> del->SetTolerance(0.001);<br><br>Once i execute, the following code,<br><br>vtkContourFilter *cf = vtkContourFilter::New();<br> cf-&g
t;SetInputConnection(del->GetOutputPort());<br> cf->GenerateValues(10, -5, 20);<br>cf->Update();<br><br>all data vanishes.. <br><br>I mean to say that, initially, the grid had, 22,000 points.. After traingulating, i got 20000 of cells.. <br><br>But after 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..<br><br>Thanks in advance<br><br><br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px arial; color:#1E56A1; text-decoration:none;">Dear <b>vtkusers !</b> Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>