/*========================================================================= Program: Visualization Toolkit Module: $RCSfile: TestXMLCInterface.c,v $ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ #include "vtkXMLWriterC.h" #define NPOINTS 8 #define NTIMESTEPS 8 int main() { int i,j; vtkXMLWriterC* writer = vtkXMLWriterC_New(); const char filename[] = "cube.vtu"; float points[3*NPOINTS] = {0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1 }; vtkIdType cellarray[] = {8, 0, 1, 2, 3, 4, 5, 6, 7}; float pointdata[NTIMESTEPS][NPOINTS]; /* Give different values for the pointdata: */ for(i=0;i