<DIV>VTKUsers,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am new to vtk and have a very simple question. I am trying to visualize an UnstructuredGrid using VTK file format. I get the following error:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Error E2034 C:\groupsinC.cxx 40: Cannot convert 'vtkUnstructuredGrid *' to 'vtkDataSet *' in&nbsp;&nbsp;function main()<BR>Error E2342 C:\groupsinC.cxx 40: Type mismatch in parameter 'input' (wanted 'vtkDataSet *',got 'vtkUnstructuredGrid *') in function main()<BR>*** 2 errors in Compile ***</DIV>
<DIV>&nbsp;</DIV>
<DIV>Relevant part of my code is as follows:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;vtkDataSetReader *reader1 = vtkDataSetReader::New();<BR>&nbsp;reader1-&gt;SetFileName ("C:/hola.vtk");<BR>&nbsp;reader1-&gt;SetScalarsName("groups");<BR>&nbsp;reader1-&gt;SetVectorsName("velocity");</DIV>
<DIV><BR>&nbsp;vtkThreshold *thresh = vtkThreshold::New();<BR>&nbsp;&nbsp;&nbsp; thresh-&gt;SetAttributeModeToUseCellData();<BR>&nbsp;&nbsp;&nbsp; thresh-&gt;ThresholdByUpper(1);<BR>&nbsp;&nbsp;&nbsp; thresh-&gt; AllScalarsOff();<BR>&nbsp;&nbsp;&nbsp; thresh-&gt; SetInput(reader1-&gt;GetOutput());</DIV>
<DIV><BR>vtkDataSetMapper *mapper = vtkDataSetMapper::New();<BR>&nbsp;mapper-&gt;SetInput(thresh-&gt;GetOutput() );</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkActor *actor = vtkActor::New();<BR>&nbsp;actor-&gt;SetMapper(mapper);<BR>&nbsp;actor-&gt;GetProperty()-&gt;SetColor(.2, .2, .2);<BR>&nbsp;actor-&gt;GetProperty()-&gt;SetRepresentationToWireframe();<BR></DIV>
<DIV>So I don't know what mapper to use to map Unstructured grid. Can someone help me out?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanking you,</DIV>
<DIV>Yours Sincerely,</DIV>
<DIV>Nikhil Butala</DIV>