<html>
<body>
It looks like you are writing your code using C++. If so, then you
need to add the following line to your program: #include
"vtkPolyData.h"<br><br>
See the thread starting with this message from yesterday:
<a href="http://public.kitware.com/pipermail/vtkusers/2005-July/081002.html" eudora="autourl">
http://public.kitware.com/pipermail/vtkusers/2005-July/081002.html</a>
.<br><br>
Tcl can handle the fact that vtkPolyData is a subclass of vtkDataSet, but
C++ needs the #include mentioned earlier to get it right.<br><br>
- Amy<br><br>
At 08:30 AM 7/28/2005, ALI AWARKI wrote:<br>
<blockquote type=cite class=cite cite="">hi all,<br>
<br>
i am trying to show the cell ids in an unstructured grid.<br>
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. <br>
vtkLabeledMapper takes as input vtkDataSet while vtkCellCenters is a
vtkdatasettopolydata filter which gives vtkPolydData as output. <br>
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()).<br>
<br>
the strange thing is that this is the method followed in the vtk user's
guide on page 65 using a tcl script.<br>
<br>
please help.<br>
thx in advance<br>
<br><br>
<br>
<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><br>
_______________________________________________<br>
This is the private VTK discussion list. <br>
Please keep messages on-topic. Check the FAQ at:
<a href="http://www.vtk.org/Wiki/VTK_FAQ" eudora="autourl">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" eudora="autourl">
http://www.vtk.org/mailman/listinfo/vtkusers</a></blockquote></body>
</html>