@@ -0,0 +1,2552 @@
+import vtk.vtkActor;%0Aimport vtk.vtkConeSource;%0Aimport vtk.vtkGlyph3D;%0Aimport vtk.vtkNamedColors;%0Aimport vtk.vtkNativeLibrary;%0Aimport vtk.vtkPolyDataMapper;%0Aimport vtk.vtkRenderWindow;%0Aimport vtk.vtkRenderWindowInteractor;%0Aimport vtk.vtkRenderer;%0Aimport vtk.vtkSphereSource;%0A    %0A%0Apublic class Mace %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 s%5B%5D) %0A  %7B%0A    vtkNamedColors Color = new vtkNamedColors();%0A%0A    //For Renderer Background Color%0A    double Bgcolor%5B%5D = new double%5B4%5D;%0A%0A    //Change Color Name to Use your own Color for Renderer Background%0A    Color.GetColor(%22DarkSeaGreen%22,Bgcolor);%0A%0A    //Create a Sphere%0A    vtkSphereSource Sphere = new vtkSphereSource();%0A%0A    Sphere.SetPhiResolution(8);%0A    Sphere.SetThetaResolution(8);%0A%0A    //Create a Mapper and Actor for Sphere%0A    vtkPolyDataMapper sphereMapper = new vtkPolyDataMapper();%0A    sphereMapper.SetInputConnection(Sphere.GetOutputPort());%0A%0A    vtkActor sphereActor = new vtkActor();%0A    sphereActor.SetMapper(sphereMapper);%0A%0A    //create a Cone%0A    vtkConeSource Cone = new vtkConeSource();%0A    Cone.SetResolution(6);%0A%0A    vtkGlyph3D Glyph = new vtkGlyph3D();%0A    Glyph.SetInputConnection(Sphere.GetOutputPort());%0A    Glyph.SetSourceConnection(Cone.GetOutputPort());%0A%0A    Glyph.SetVectorModeToUseNormal();%0A    Glyph.SetScaleModeToScaleByVector();%0A    Glyph.SetScaleFactor(0.25);%0A%0A    vtkPolyDataMapper spikeMapper = new vtkPolyDataMapper();%0A    spikeMapper.SetInputConnection(Glyph.GetOutputPort());%0A%0A    vtkActor spikeActor = new vtkActor();%0A    spikeActor.SetMapper(spikeMapper);%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(spikeActor);%0A    ren.AddActor(sphereActor);%0A%0A    ren.SetBackground(Bgcolor);%0A    renWin.SetSize(300,300);%0A    renWin.Render();%0A%0A    iren.Initialize();%0A    iren.Start();%0A  %7D%0A%7D%0A

Create Mace.java