[vtkusers] How best to programmatically write VTK XML files

Berk Geveci berk.geveci at kitware.com
Mon Nov 26 07:27:10 EST 2007


If linking against vtk libraries is an option, there is a collection
of C/Fortran functions that are available for writing vtk-xml files.
Look at VTK/IO/vtkXMLWriterC.h and vtkXMLWriterF.h. If your CFD code
is C++, you can use the vtkXMLWriter class (also in IO). To writer pvd
files, you can use vtkXMLPVDWriter in paraview Servers/Filters.

-berk

On 11/21/07, Olumide <50295 at web.de> wrote:
> Hi -
>
> I'm a VTK newbie using VTK to inspect geometry produced by my custom
> application (note: I'm not using the VTK API or writing a VTK
> application, I'm just using VTK for "visual debugging"). I've already
> written a legacy VTK writer but now I'm interested in VTK's XML formats
> especially the PVD and VTU formats. I'd like to know if there are any
> tools for programmatically writing such XML files.
>
> Thanks,
>
> - Olumide
>
> _______________________________________________
> 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
>



More information about the vtkusers mailing list