[vtkusers] Re: How to write multiple vtkPolyData into on single XML file

Goodwin Lawlor goodwin.lawlor at ucd.ie
Thu Oct 28 20:10:54 EDT 2004


Hi Patrick,

Use vtkAppendPolyData to append all your polydatas into one, then write this
appended polydata out using vtkXMLWriter.

hth

Goodwin

"Peng (Patrick) Cheng" <peng-cheng at uiowa.edu> wrote in message
news:418177F6.8050800 at uiowa.edu...
> hi all,
>
> I have hundreds of vtkPolyData in a list need to be output to a XML
> file, and later on read back. each of them is a line with a points and a
> scalars. I was just wondering is it possible to write all these data
> into  one XML file with current vtkXMLWriter? or do I have to output one
> file for each vtkPolyData?
>
> Patrick
> -- 
>
> Peng (Patrick) Cheng
> Research Assistant
> Radiology, Magnetic Resonance Imaging (MRI) Center
> University of Iowa Hospital and Clinics
> Iowa City, IA 52246
>
> Office:  0453-E JCP
> Phone:   (319)356-7808 (O)
>           (319)400-7442 (C)
> Email:   peng-cheng at uiowa.edu
> Website: http://css.engineering.uiowa.edu/~pcheng/
>
>
>
> _______________________________________________
> 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