[vtkusers] Saving Polydata

Rasmus Reinhold Paulsen rrp at imm.dtu.dk
Wed Apr 24 15:53:37 EDT 2002


On Wed, 24 Apr 2002, Michael Györffy wrote:

> 	What should I do with AppendPolyData to save it as a dataset?
> Currently, I am trying to send it to vtkPolyDataWriter or vtkDataSetWriter
> and this generates errors as the writer doesn't know what to do with
> AppendPolyData.

Use the GetOutput() method from your AppendPolyData object. f.ex.

...
writer->SetInput(append->GetOutput());
...

where writer is a vtkPolyDataWriter object

regards
Rasmus




More information about the vtkusers mailing list