[vtkusers] (no subject)

Amy Squillacote amy.squillacote at kitware.com
Thu Jul 28 08:52:10 EDT 2005


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"

See the thread starting with this message from 
yesterday:  http://public.kitware.com/pipermail/vtkusers/2005-July/081002.html.

Tcl can handle the fact that vtkPolyData is a subclass of vtkDataSet, 
but C++ needs the #include mentioned earlier to get it right.

- Amy

At 08:30 AM 7/28/2005, ALI AWARKI wrote:
>hi all,
>
>i am trying to show the cell ids in an unstructured grid.
>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.
>vtkLabeledMapper takes as input vtkDataSet while vtkCellCenters is a 
>vtkdatasettopolydata filter which gives vtkPolydData as output.
>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()).
>
>the strange thing is that this is the method followed in the vtk 
>user's guide on page 65 using a tcl script.
>
>please help.
>thx in advance
>
>
>
><http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>Start 
>your day with Yahoo! - make it your home page
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050728/b85adfa2/attachment.htm>


More information about the vtkusers mailing list