old_contents: 
  import vtk
  from vtk.test import Testing
  from vtk.util.misc import vtkGetDataRoot
  VTK_DATA_ROOT = vtkGetDataRoot()
  
  # Create the RenderWindow, Renderer and both Actors
  #
  ren1 = vtk.vtkRenderer()
  renWin = vtk.vtkRenderWindow()
  renWin.SetMultiSamples(0)
  renWin.AddRenderer(ren1)
  iren = vtk.vtkRenderWindowInteractor()
  iren.SetRenderWindow(renWin)
  
  # Create a synthetic source
  sphere = vtk.vtkSphere()
  sphere.SetCenter( 0.0,0.0,0.0)
  sphere.SetRadius(0.25)
  
  # iso-surface to create geometry
  sample = vtk.vtkSampleFunction()
  sample.SetImplicitFunction(sphere)
  sample.SetModelBounds(-0.5,0.5, -0.5,0.5, -0.5,0.5)
  sample.SetSampleDimensions(250,350,400)
  
  iso = vtk.vtkFlyingEdges3D()
  iso.SetInputConnection(sample.GetOutputPort())
  iso.GenerateValues(3,-.11,.11)
  iso.ComputeNormalsOn()
  iso.ComputeGradientsOn()
  
  isoMapper = vtk.vtkPolyDataMapper()
  isoMapper.SetInputConnection(iso.GetOutputPort())
  isoMapper.ScalarVisibilityOff()
  isoActor = vtk.vtkActor()
  isoActor.SetMapper(isoMapper)
  isoActor.GetProperty().SetColor(1,1,1)
  isoActor.GetProperty().SetOpacity(0.5)
  
  outline = vtk.vtkOutlineFilter()
  outline.SetInputConnection(sample.GetOutputPort())
  outlineMapper = vtk.vtkPolyDataMapper()
  outlineMapper.SetInputConnection(outline.GetOutputPort())
  outlineActor = vtk.vtkActor()
  outlineActor.SetMapper(outlineMapper)
  outlineProp = outlineActor.GetProperty()
  
  # Add the actors to the renderer, set the background and size
  #
  ren1.AddActor(outlineActor)
  ren1.AddActor(isoActor)
  ren1.SetBackground(0,0,0)
  renWin.SetSize(400,400)
  ren1.ResetCamera()
  iren.Initialize()
  
  renWin.Render()
  # --- end of script --
  
new_contents: 
  import vtk
  from vtk.test import Testing
  from vtk.util.misc import vtkGetDataRoot
  VTK_DATA_ROOT = vtkGetDataRoot()
  
  # Create the RenderWindow, Renderer and both Actors
  #
  ren1 = vtk.vtkRenderer()
  renWin = vtk.vtkRenderWindow()
  renWin.SetMultiSamples(0)
  renWin.AddRenderer(ren1)
  iren = vtk.vtkRenderWindowInteractor()
  iren.SetRenderWindow(renWin)
  
  # Create a synthetic source
  sphere = vtk.vtkSphere()
  sphere.SetCenter( 0.0,0.0,0.0)
  sphere.SetRadius(0.25)
  
  # iso-surface to create geometry
  sample = vtk.vtkSampleFunction()
  sample.SetImplicitFunction(sphere)
  sample.SetModelBounds(-0.5,0.5, -0.5,0.5, -0.5,0.5)
  sample.SetSampleDimensions(25,35,40)
  
  iso = vtk.vtkFlyingEdges3D()
  iso.SetInputConnection(sample.GetOutputPort())
  iso.GenerateValues(3,-.11,.11)
  iso.ComputeNormalsOn()
  iso.ComputeGradientsOn()
  
  isoMapper = vtk.vtkPolyDataMapper()
  isoMapper.SetInputConnection(iso.GetOutputPort())
  isoMapper.ScalarVisibilityOff()
  isoActor = vtk.vtkActor()
  isoActor.SetMapper(isoMapper)
  isoActor.GetProperty().SetColor(1,1,1)
  isoActor.GetProperty().SetOpacity(0.5)
  
  outline = vtk.vtkOutlineFilter()
  outline.SetInputConnection(sample.GetOutputPort())
  outlineMapper = vtk.vtkPolyDataMapper()
  outlineMapper.SetInputConnection(outline.GetOutputPort())
  outlineActor = vtk.vtkActor()
  outlineActor.SetMapper(outlineMapper)
  outlineProp = outlineActor.GetProperty()
  
  # Add the actors to the renderer, set the background and size
  #
  ren1.AddActor(outlineActor)
  ren1.AddActor(isoActor)
  ren1.SetBackground(0,0,0)
  renWin.SetSize(400,400)
  ren1.ResetCamera()
  iren.Initialize()
  
  renWin.Render()
  # --- end of script --
  
subject: Reduce size of dataset processed by TestFlyingEdges3D