@@ -0,0 +1,1154 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkFloatArray;%0A%0Apublic class KnownLengthArray %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 public static void main(String s%5B%5D) %0A %7B%09%0A    vtkFloatArray Distances = new vtkFloatArray();%0A    Distances.SetName(%22Distances%22);%0A    Distances.SetNumberOfComponents(1);%0A    Distances.SetNumberOfValues(5);%0A    %0A    //set values%0A    for(int i = 0; i %3C Distances.GetNumberOfTuples(); i++)%0A    %7B%0A      double f = i + 0.1;%0A      Distances.SetValue(i, f);%0A    %7D%0A    %0A    //get values%0A    for(int i = 0; i %3C Distances.GetNumberOfTuples(); i++)%0A    %7B%0A      double f = Distances.GetValue(i);%0A      System.out.println(f);%0A    %7D%09%09%0A  %0A  %7D%0A%7D%0A

Create KnownLengthArray.java