@@ -0,0 +1,1518 @@
+import vtk.vtkSphereSource;%0Aimport vtk.vtkPoints;%0Aimport vtk.vtkPlanesIntersection;%0Aimport vtk.vtkNativeLibrary;%0A%0Aclass PlanesIntersection%7B  %0A%09%0A%09static %7B%0A%09    if (!vtkNativeLibrary.LoadAllNativeLibraries()) %7B%0A%09      for (vtkNativeLibrary lib : vtkNativeLibrary.values()) %7B%0A%09        if (!lib.IsLoaded()) %7B%0A%09          System.out.println(lib.GetLibraryName() + %22 not loaded%22);%0A%09        %7D%0A%09      %7D%0A%09    %7D%0A%09    vtkNativeLibrary.DisableOutputWindow(null);%0A%09  %7D%0A%09%0A%09%0A    public static void main(String args%5B%5D)%7B  %0A    %09%0A    %09vtkSphereSource SphereSource = new vtkSphereSource();%0A%09%09  SphereSource.Update();%0A%09%09  %0A%09%09  double bounds%5B%5D = new double%5B6%5D;%0A%09%09  %09%09  %0A%09%09  SphereSource.GetOutput().GetBounds(bounds);%0A%09%09  vtkPoints Box = new vtkPoints();%0A%09%09  Box.SetNumberOfPoints(8);%0A%09%09  %0A%09%09  double xMin, xMax, yMin, yMax, zMin, zMax;%0A%09%09  xMin = bounds%5B0%5D; xMax = bounds%5B1%5D;%0A%09%09  yMin = bounds%5B2%5D; yMax = bounds%5B3%5D;%0A%09%09  zMin = bounds%5B4%5D; zMax = bounds%5B5%5D;%0A%0A%09%09  %0A%09%09  Box.SetPoint(0, xMax, yMin, zMax);%0A%09%09  Box.SetPoint(1, xMax, yMin, zMin);%0A%09%09  Box.SetPoint(2, xMax, yMax, zMin);%0A%09%09  Box.SetPoint(3, xMax, yMax, zMax);%0A%09%09  Box.SetPoint(4, xMin, yMin, zMax);%0A%09%09  Box.SetPoint(5, xMin, yMin, zMin);%0A%09%09  Box.SetPoint(6, xMin, yMax, zMin);%0A%09%09  Box.SetPoint(7, xMin, yMax, zMax);%0A%09%09  %0A%09%09  %0A%09%09  vtkPlanesIntersection PlanesIntersection = new vtkPlanesIntersection();%0A%09%09  PlanesIntersection.SetBounds(bounds);%0A%09%09  %0A%09%09  int intersects = PlanesIntersection.IntersectsRegion(Box);%0A%09%09  System.out.print(%22Intersects:%22 + intersects );%0A%09%09  %0A    %7D  %0A%7D   %0A

Create PlanesIntersection.java