[vtkusers] Filter source to file
Amy Squillacote
ahs at cfdrc.com
Mon Jun 2 09:40:55 EDT 2008
Set the output of vtkSphereSource to be the input to
vtkXMLPolyDataWriter. In c++, this looks something like the following.
vtkSphereSource *sphere = vtkSphereSource::New();
vtkXMLPolyDataWriter *writer = vtkXMLPolyDataWriter::New();
writer->SetInputConnection(sphere->GetOutputPort());
- Amy
Antoine Dechaume wrote:
> Hi,
>
> I am trying to create an animation, for which I need an object, let
> say a sphere, to move with time.
> In a python script, I want to save the vtkSphereSource, at each time
> step, to a file (which will be used in paraview)
> My only problem is that the writer (vtkXMLPolyDataWriter) wants a
> vtkDataObject. Is there an easy way to transform a vtkSphereSource
> instance to feed vtkXMLPolyDataWriter ?
>
> Thanks,
> Antoine.
> _______________________________________________
> 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
>
>
--
Amy Squillacote Phone: (256) 726-4839
Computer Scientist Fax: (256) 726-4806
CFD Research Corporation Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL 35805
More information about the vtkusers
mailing list