@@ -0,0 +1,2433 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkRenderWindow;%0Aimport vtk.vtkRenderWindowInteractor;%0Aimport vtk.vtkRenderer;%0Aimport vtk.vtkStructuredGrid;%0Aimport vtk.vtkPoints;%0Aimport vtk.vtkStructuredGridOutlineFilter;%0Aimport vtk.vtkActor;%0Aimport vtk.vtkPolyDataMapper;%0A%0Apublic class StructuredGridOutline %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  %0A    //  Create a grid%0A    vtkStructuredGrid structuredGrid = new vtkStructuredGrid();%0A    %0A    vtkPoints points = new vtkPoints();%0A    int numi = 2;%0A    int numj = 3;%0A    int numk = 2;%0A    %0A    for(int k = 0; k %3C numk; k++)%0A    %7B%0A      for(int j = 0; j %3C numj; j++)%0A      %7B%0A        for(int i = 0; i %3C numi; i++)%0A        %7B%0A          points.InsertNextPoint(i, j, k);%0A        %7D%0A      %7D%0A    %7D%0A    %0A    //specify the dimensions of the grid%0A    structuredGrid.SetDimensions(numi, numj, numk);%0A    structuredGrid.SetPoints(points);%0A    %0A    System.out.println(%22There are %22 + %22 %22 + structuredGrid.GetNumberOfPoints() + %22 %22 + %22points.%22);%0A    System.out.println(%22There are %22 + %22 %22 + structuredGrid.GetNumberOfCells() + %22 %22 + %22cells.%22);%0A  %0A    vtkStructuredGridOutlineFilter outlineFilter = new vtkStructuredGridOutlineFilter();%0A    outlineFilter.SetInputData(structuredGrid);%0A    outlineFilter.Update();%0A    %0A    // Create a mapper and actor%0A    vtkPolyDataMapper mapper = new vtkPolyDataMapper();%0A    mapper.SetInputConnection(outlineFilter.GetOutputPort());%0A%0A    vtkActor actor = new vtkActor();%0A    actor.SetMapper(mapper);%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    %0A    renWin.SetSize(300,300);%0A    renWin.Render();%0A%0A    iren.Initialize();%0A    iren.Start();%0A%0A  %7D%0A%7D%0A

Create StructuredGridOutline.java