<DIV>
<DIV>hi all,</DIV>
<DIV> </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)->SetInput(vtkCellCenters->GetOuput()).</DIV>
<DIV> </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> </DIV>
<DIV>please help.</DIV>
<DIV>thx in advance</DIV>
<DIV> </DIV></DIV><p>
                <hr size=1> <a href="http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs">Start your day with Yahoo! - make it your home page </a>