[vtkusers] vtkStreamTracer->SetInput(vtkPlaneSource->GetOutput() ) -->error

joseph mccoy j.mccoy at gmx.de
Thu Oct 30 09:14:44 EST 2003


yes, you are right. indeed i forgot to add this vtkPolyData.h. now it works
without the explicit cast. Thank you!

Joseph


----- Original Message -----
From: "Berk Geveci" <berklist at nycap.rr.com>
To: "joseph mccoy" <j.mccoy at gmx.de>
Cc: <vtkusers at vtk.org>
Sent: Thursday, October 30, 2003 3:04 PM
Subject: Re: [vtkusers]
vtkStreamTracer->SetInput(vtkPlaneSource->GetOutput() ) -->error


> Actually, since vtkPolyData is a sub-class of vtkDataSet,
> setting the input without the cast should work. I think the
> problem lies in the fact that the compiler does not recognize
> that vtkPolyData is a sub-class of vtkDataSet. Did you
> include vtkPolyData.h ?
>
> -Berk
>
> On Thu, 2003-10-30 at 06:35, joseph mccoy wrote:
> > Hello All,
> >
> > maybe this question is very stupid and also had been answered before a
> > hundret times, but i don't seem to be able to find an answer! Maybe
> > someone could help me. Here is my problem:
> >
> > with vtk4.0 i feeded a vtkStreamer with a vtkPlaneSource via
> > ->SetSource(plane->GetOutput() ). ´that worked fine. now i wanted to
> > port the concept to vtk4.23 using vtkStreamTracer and i learned that
> > StreamTracer needs a dataSet as input, but planeSource produces
> > polyData.
> >
> > Does anybody know how to convert a polyData into a DataSet? or how i
> > could use a plane as Input for the StreamTracer?
> >
> > Thanks
> >
> > Joseph
> --
> Berk Geveci <berklist at nycap.rr.com>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>





More information about the vtkusers mailing list