[vtkusers] VTK file in XML fmt...
Mathieu Malaterre
mathieu.malaterre at kitware.com
Sat Sep 9 15:11:35 EDT 2006
>
> Hi the list,
>
> Until now, I wrote my VTK file in the "legacy format", in binary or ASCII.
> My code written in C, using classical fwrite() routines, was doing the
> job, without problem.
>
> Now, I want to take advantage of the new XML format.
>
> My question is in concern with the header, knowing I want to write my
> files in compressed format.
>
> For XML compressed format, what C routines should I use now ?
> Should I use some appropriate VTK routines ?
> (But VTK routines are in C++, no? And I code in C).
>
> Thanks in advance.
>
> --
> « Python c'est un peu comme la baïonette en 14, faut toujours sortir avec,
> et pas hésiter d'en mettre un coup en cas de besoin. »
> J.-Ph. D.
Salut J-Ph
Have you look at the test: TestXMLCInterface.c. If you can, you simply need to build VTK (VTK_RENDERING=OFF) and then use the C interface to the XML writer. For more info see vtkXMLWriterC.[h|cxx]
HTH
Mathieu
More information about the vtkusers
mailing list