@@ -0,0 +1,1488 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkSphereSource;%0Aimport vtk.vtkDelaunay3D;%0Aimport vtk.vtkXMLPUnstructuredGridWriter;%0A%0Apublic class XMLPUnstructuredGridWriter%0A%7B%0A  // -----------------------------------------------------------------%0A  // Load VTK library and print which library was not properly loaded%0A  static %0A  %7B%0A    if (!vtkNativeLibrary.LoadAllNativeLibraries()) %0A    %7B%0A      for (vtkNativeLibrary lib : vtkNativeLibrary.values()) %0A      %7B%0A        if (!lib.IsLoaded()) %0A        %7B%0A          System.out.println(lib.GetLibraryName() + %22 not loaded%22);%0A        %7D%0A      %7D%0A    %7D%0A    vtkNativeLibrary.DisableOutputWindow(null);%0A  %7D%0A  // -----------------------------------------------------------------%0A%0A  public static void main(String args%5B%5D) %0A  %7B%0A    %0A    //parse command line arguments%0A    if (args.length != 1) %0A    %7B%0A      System.err.println(%22Usage: java -classpath ... Filename(.pvtu) e.g Test.pvtu%22);%0A      return;%0A    %7D%0A    String Filename = args%5B0%5D;%0A    %0A    vtkSphereSource sphereSource = new vtkSphereSource();%0A    sphereSource.Update();%0A    %0A    vtkDelaunay3D delaunay = new vtkDelaunay3D();%0A    delaunay.SetInputConnection(sphereSource.GetOutputPort());%0A    delaunay.Update();%0A    %0A    vtkXMLPUnstructuredGridWriter writer = new vtkXMLPUnstructuredGridWriter();%0A    writer.SetInputConnection(delaunay.GetOutputPort());%0A    writer.SetFileName(Filename);%0A    writer.SetNumberOfPieces(4);%0A    writer.SetStartPiece(0);%0A    writer.SetEndPiece(3);%0A    writer.Update();%0A%0A  %7D%0A%7D%0A

Create XMLPUnstructuredGridWriter.java