[vtkusers] XML format: base64 or raw
Mathieu Malaterre
mathieu.malaterre at kitware.com
Sat Feb 24 13:42:52 EST 2007
fred wrote:
> Mathieu Malaterre wrote:
>> Fixed in VTK CVS.
> Ok, it works quite fine.
Here is what I did:
Index: TestXMLCInterface.c
===================================================================
RCS file: /cvsroot/VTK/VTK/IO/Testing/Cxx/TestXMLCInterface.c,v
retrieving revision 1.5
diff -u -3 -p -r1.5 TestXMLCInterface.c
--- TestXMLCInterface.c 7 Jun 2005 13:29:21 -0000 1.5
+++ TestXMLCInterface.c 24 Feb 2007 18:40:35 -0000
@@ -44,6 +44,7 @@ int main()
/* #define VTK_UNSTRUCTURED_GRID 4 */
vtkXMLWriterC_SetDataObjectType(writer, 4);
+ vtkXMLWriterC_SetDataModeType(writer, 2);
vtkXMLWriterC_SetFileName(writer, filename);
/* #define VTK_FLOAT 10 */
vtkXMLWriterC_SetPoints(writer, 10, points, NPOINTS);
Steps:
1. Set the datamode to vtkXMLWriterC_SetDataModeType(writer, 1);
2. Recompile
I get:
-rw-r--r-- 1 mathieu mathieu 10021 2007-02-24 13:38 cube.vtu
1. Set the datamode to vtkXMLWriterC_SetDataModeType(writer, 2);
2. Recompile
I get:
-rw-r--r-- 1 mathieu mathieu 8694 2007-02-24 13:39 cube.vtu
HTH,
-Mathieu
More information about the vtkusers
mailing list