[prev in list] [next in list] [prev in thread] [next in thread]
List: vtkusers
Subject: Re: [vtkusers] (no subject)
From: Amy Squillacote <amy.squillacote () kitware ! com>
Date: 2005-07-28 12:52:10
Message-ID: 6.2.3.4.2.20050728084805.02bec928 () pop ! biz ! rr ! com
[Download RAW message or 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"
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
[Attachment #3 (text/html)]
<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>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic