@@ -0,0 +1,3261 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkRenderWindow;%0Aimport vtk.vtkRenderWindowInteractor;%0Aimport vtk.vtkRenderer;%0Aimport vtk.vtkActor;%0Aimport vtk.vtkNamedColors;%0Aimport vtk.vtkPolyDataMapper;%0Aimport vtk.vtkSphereSource;%0Aimport vtk.vtkArrowSource;%0Aimport vtk.vtkBrownianPoints;%0Aimport vtk.vtkGlyph3D;%0Aimport vtk.vtkMath;%0A%0Apublic class BrownianPoints %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    vtkNamedColors Color = new vtkNamedColors(); %0A%0A    //For Actor Color%0A    double glyphActorColor%5B%5D = new double%5B4%5D;%0A    //Renderer Background Color%0A    double BgColor%5B%5D = new double%5B4%5D;%0A         %0A    //Change Color Name to Use your own Color for Change Actor Color%0A    Color.GetColor(%22Banana%22,glyphActorColor);%0A    //Change Color Name to Use your own Color for Renderer Background%0A    Color.GetColor(%22SlateGray%22,BgColor);%0A    %0A    //Create a sphere%0A    vtkSphereSource sphereSource = new vtkSphereSource();%0A%0A    //Generate random vectors%0A    vtkMath math = new vtkMath(%09);%0A    math.RandomSeed(5070); // for testing%0A    vtkBrownianPoints brownianPoints = new vtkBrownianPoints();%0A    brownianPoints.SetInputConnection(sphereSource.GetOutputPort());%0A%0A    vtkArrowSource arrowSource = new vtkArrowSource();%0A%0A    vtkGlyph3D glyph3D = new vtkGlyph3D();%0A    glyph3D.SetSourceConnection(arrowSource.GetOutputPort());%0A    glyph3D.SetInputConnection(brownianPoints.GetOutputPort());%0A    glyph3D.SetScaleFactor(.3);%0A    %0A    //Create a mapper and actor for sphere%0A    vtkPolyDataMapper mapper = new vtkPolyDataMapper();%0A    mapper.SetInputConnection(sphereSource.GetOutputPort());%0A%0A    vtkActor actor = new vtkActor();%0A    actor.GetProperty().EdgeVisibilityOn();%0A    actor.GetProperty().SetInterpolationToFlat();%0A    actor.SetMapper(mapper);%0A%0A    //Create a mapper and actor for glyphs%0A    vtkPolyDataMapper glyphMapper = new vtkPolyDataMapper();%0A    glyphMapper.SetInputConnection(glyph3D.GetOutputPort());%0A%0A    vtkActor glyphActor = new vtkActor();%0A    glyphActor.GetProperty().SetColor(glyphActorColor);%0A    glyphActor.SetMapper(glyphMapper);%0A                %0A    //Create the renderer, render window and interactor.%0A    vtkRenderer ren = new vtkRenderer();%0A    vtkRenderWindow renWin = new vtkRenderWindow();%0A    renWin.AddRenderer(ren);%0A    vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();%0A    iren.SetRenderWindow(renWin);%0A    %0A    ren.AddActor(actor);%0A    ren.AddActor(glyphActor);%0A    %0A    ren.ResetCamera();%0A    ren.GetActiveCamera().Azimuth(30%09);%0A    ren.GetActiveCamera().Elevation(30);%0A    ren.GetActiveCamera().Dolly(1.4);%0A    ren.ResetCameraClippingRange();%0A    ren.SetBackground(BgColor);%0A    %0A    renWin.SetSize(300,300);%0A    renWin.Render();%0A%0A    iren.Initialize();%0A    iren.Start();%0A%0A  %7D%0A%7D%0A

Create BrownianPoints.java