I'm trying to use a vtkContourGrid to calculate the contour of a vtkUnstructuredGrid for surface visualization. I have been able to visualize my grid as a point cloud using a standard mapper/actor setup, so I know there is correct data in the grid. However, when I try to pass it into my vtkContourGrid, I get an error indicating that there is "No data to contour". My code basically looks like this:<br><br>vtkPoints *points = vtkPoints::New(); points->Allocate(m_InSegmentImage->GetRequestedRegion().GetSize()[0]*m_InSegmentImage->GetRequestedRegion().GetSize()[1]*m_InSegmentImage->GetRequestedRegion().GetSize()[2]);<br><br>vtkUnstructuredGrid * grid = vtkUnstructuredGrid::New();<br><br>// ** Loop to insert points into vtkPoints<br>{<br> points->InsertNextPoint(it.GetIndex()[0],it.GetIndex()[1],it.GetIndex()[2]);<br>}<br>grid->SetPoints(points);<br><br> unsigned int
isoLevel = 64;<br> vtkContourGrid * contour;<br> vtkSmoothPolyDataFilter * smoother;<br> vtkPolyDataNormals * norms;<br> vtkStripper * strip;<br> vtkPolyDataMapper * contourMapper;<br><br> contour = vtkContourGrid::New();<br><br> contour->SetInput(grid);<br> contour->SetValue(0, isoLevel);<br> contour->Update();<br> ...<br><br>I've searched the archives and found one instance of this exact question being asked, but no responses to it. Can anyone help?<br><br> Aaron<p> 
                <hr size=1>New Yahoo! Messenger with Voice. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman5/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com">Call regular phones from your PC</a> and save big.