@@ -0,0 +1,1284 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkPLYWriter;%0Aimport vtk.vtkXMLPolyDataReader;%0A%0Apublic class ConvertFile%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  // -----------------------------------------------------------------%09%0A%0A  public static void main(String args%5B%5D) %0A  %7B%0A    //parse command line arguments%0A    if (args.length != 2) %0A    %7B%0A      System.err.println(%22Usage: java -classpath ... InputVTP Filename(.vtp) OutputFilename(.ply) e.g input.vtp output.ply%22);%0A      return;%0A    %7D %0A    %0A    String inputFileName = args%5B0%5D;%0A    String outputFileName = args%5B1%5D;%0A%0A    vtkXMLPolyDataReader reader = new vtkXMLPolyDataReader();%0A    reader.SetFileName(inputFileName);%0A    reader.Update();%0A%0A    vtkPLYWriter writer = new vtkPLYWriter();%0A    writer.SetFileName(outputFileName);%0A    writer.SetInputConnection(reader.GetOutputPort());%0A    writer.Update();%0A  %7D%0A%7D%0A

Create ConvertFile.java