<DIV>hi all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>i am trying to show the cell ids in an unstructured grid.</DIV>
<DIV>i used the vtkIdfilter to generate field data. then i used vtkCellCenters to generate points at the centers of the cells. the problem starts when i want to use vtklabeledmapper. </DIV>
<DIV>vtkLabeledMapper takes as input vtkDataSet while vtkCellCenters is a vtkdatasettopolydata filter which gives vtkPolydData as output. </DIV>
<DIV>at the end i am getting the expected error of not being able to convert from vtkpolydata to vtkdataset at the command (vtkLabeledMapper)-&gt;SetInput(vtkCellCenters-&gt;GetOuput()).</DIV>
<DIV>&nbsp;</DIV>
<DIV>the strange thing is that this is the method followed in the vtk user's guide on page 65 using a tcl script.</DIV>
<DIV>&nbsp;</DIV>
<DIV>please help.</DIV>
<DIV>thx in advance</DIV>
<DIV>&nbsp;</DIV><p>
                <hr size=1>Yahoo! Mail<br> 
Stay connected, organized, and protected. <a href="http://tour.mail.yahoo.com/mailtour.html">Take the tour</a>