@@ -0,0 +1,1219 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkSphereSource;%0Aimport vtk.vtkSimplePointsWriter;%0A%0Apublic class SimplePointsWriter %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    //parse command line arguments%0A    if (args.length != 1) %0A    %7B%0A      System.err.println(%22Usage: java -classpath ... Filename(.xyz) e.g SimplePointWriter.xyz%22);%0A      return;%0A    %7D%0A    String inputFilename = args%5B0%5D;%0A    vtkSphereSource sphereSource = new vtkSphereSource();%0A    sphereSource.Update();%0A    %0A    vtkSimplePointsWriter writer = new vtkSimplePointsWriter();%0A    writer.SetFileName(inputFilename);%0A    writer.SetInputConnection(sphereSource.GetOutputPort());%0A    writer.Write();%0A    %0A  %7D%0A%7D%0A

Create SimplePointsWriter.java