///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (math != null)
     {
         math.Dispose();
     }
     if (pf != null)
     {
         pf.Dispose();
     }
     if (pl3d != null)
     {
         pl3d.Dispose();
     }
     if (dst != null)
     {
         dst.Dispose();
     }
     if (extract != null)
     {
         extract.Dispose();
     }
     if (cf != null)
     {
         cf.Dispose();
     }
     if (pdn != null)
     {
         pdn.Dispose();
     }
     if (ps != null)
     {
         ps.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (ren != null)
     {
         ren.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (math != null)
     {
         math.Dispose();
     }
     if (pf != null)
     {
         pf.Dispose();
     }
     if (sphere != null)
     {
         sphere.Dispose();
     }
     if (extract != null)
     {
         extract.Dispose();
     }
     if (normals != null)
     {
         normals.Dispose();
     }
     if (ps != null)
     {
         ps.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (sphere2 != null)
     {
         sphere2.Dispose();
     }
     if (extract2 != null)
     {
         extract2.Dispose();
     }
     if (mapper2 != null)
     {
         mapper2.Dispose();
     }
     if (psize != null)
     {
         psize.Dispose();
     }
     if (actor2 != null)
     {
         actor2.Dispose();
     }
     if (sphere3 != null)
     {
         sphere3.Dispose();
     }
     if (extract3 != null)
     {
         extract3.Dispose();
     }
     if (ps3 != null)
     {
         ps3.Dispose();
     }
     if (mapper3 != null)
     {
         mapper3.Dispose();
     }
     if (actor3 != null)
     {
         actor3.Dispose();
     }
     if (sphere4 != null)
     {
         sphere4.Dispose();
     }
     if (extract4 != null)
     {
         extract4.Dispose();
     }
     if (ps4 != null)
     {
         ps4.Dispose();
     }
     if (mapper4 != null)
     {
         mapper4.Dispose();
     }
     if (actor4 != null)
     {
         actor4.Dispose();
     }
     if (ren != null)
     {
         ren.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }