[Paraview] Animation / Loading of different files

John Biddiscombe biddisco at cscs.ch
Thu Jul 19 04:29:28 EDT 2007


> I have a similar problem. I have a few hundred vtk legacy files I want to
> load. What sort of file can I create to do this?
>   
You can't yet, but it'd take about five minutes to write a quick converter

for (int i=0; i<N; i++) {
  vtkSmartPointer<vtkDataSetReader> reader =   
vtkSmartPointer<vtkDataSetReader>:::New();
  reader->SetFileName(X);
  vtkSmartPointer<vtkXMLUnstructured/Poly/Image/Writer> writer =   
vtkSmartPointer<vtkXMLUnstructured/Poly/Image/Writer>:::New();
  writer->SetInputConnection(reader->GetOutputPort();
  writer->SetFileName(...)
  write...
end;

and convert them. Then use the file suggested previously.

JB





More information about the ParaView mailing list