///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (reader != null) { reader.Dispose(); } if (outline != null) { outline.Dispose(); } if (mapOutline != null) { mapOutline.Dispose(); } if (outlineActor != null) { outlineActor.Dispose(); } if (rk != null) { rk.Dispose(); } if (streamer != null) { streamer.Dispose(); } if (aa != null) { aa.Dispose(); } if (rf1 != null) { rf1.Dispose(); } if (mapStream != null) { mapStream.Dispose(); } if (streamActor != null) { streamActor.Dispose(); } if (cam != null) { cam.Dispose(); } }
/// <summary> /// Releases the unmanaged resources used by the ActivizWPF.UserControls.VtkRenderWindowControl /// and optionally releases the managed resources. /// </summary> /// /// <param name="disposing">Set to true if called from an explicit disposer and false otherwise.</param> /// /// <seealso cref="M:ActivizWPF.Framework.Native.HwndWrapper.Dispose(bool)"/> protected override void Dispose(bool disposing) { if (_renderer != null) { _renderer.SetRenderWindow(null); } if (_renderWindowInteractor != null) { _renderWindowInteractor.Dispose(); _renderWindowInteractor = null; } if (_renderWindow != null) { _renderWindow.Dispose(); _renderWindow = null; } if (_renderer != null) { _renderer.Dispose(); _renderer = null; } base.Dispose(disposing); }
///<summary> ///Deletes all static objects created ///</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (sphere != null) { sphere.Dispose(); } if (cone != null) { cone.Dispose(); } if (glyph != null) { glyph.Dispose(); } if (apd != null) { apd.Dispose(); } if (maceMapper != null) { maceMapper.Dispose(); } if (maceActor != null) { maceActor.Dispose(); } if (planes != null) { planes.Dispose(); } if (clipper != null) { clipper.Dispose(); } if (selectMapper != null) { selectMapper.Dispose(); } if (selectActor != null) { selectActor.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (boxWidget != null) { boxWidget.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (renWin != null) { renWin.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (iren != null) { iren.Dispose(); } if (camera != null) { camera.Dispose(); } if (light != null) { light.Dispose(); } if (textProp != null) { textProp.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (sphere != null) { sphere.Dispose(); } if (mapper != null) { mapper.Dispose(); } if (actor != null) { actor.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (camera != null) { camera.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (reader != null) { reader.Dispose(); } if (cdp != null) { cdp.Dispose(); } if (translator != null) { translator.Dispose(); } if (outline != null) { outline.Dispose(); } if (mapOutline != null) { mapOutline.Dispose(); } if (outlineActor != null) { outlineActor.Dispose(); } if (streamer != null) { streamer.Dispose(); } if (cone != null) { cone.Dispose(); } if (cones != null) { cones.Dispose(); } if (mapCones != null) { mapCones.Dispose(); } if (conesActor != null) { conesActor.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (pl3d != null) { pl3d.Dispose(); } if (ps != null) { ps.Dispose(); } if (psMapper != null) { psMapper.Dispose(); } if (psActor != null) { psActor.Dispose(); } if (streamer != null) { streamer.Dispose(); } if (streamMapper != null) { streamMapper.Dispose(); } if (streamline != null) { streamline.Dispose(); } if (outline != null) { outline.Dispose(); } if (outlineMapper != null) { outlineMapper.Dispose(); } if (outlineActor != null) { outlineActor.Dispose(); } if (cam1 != null) { cam1.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 (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 (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (pl3d != null) { pl3d.Dispose(); } if (cf != null) { cf.Dispose(); } if (cam1 != null) { cam1.Dispose(); } }
static private void init() { vtkSTLReader rdr = vtkSTLReader.New(); rdr.SetFileName("BODY-EXTRUDEUR-WADE.stl"); // Créer une géométrie sphérique /*vtkSphereSource sphere = vtkSphereSource.New(); * sphere.SetRadius(1.0); * sphere.SetThetaResolution(18); * sphere.SetPhiResolution(18);*/ // Transforme la géométrie en primitives graphiques (OpenGL dans notre cas) vtkPolyDataMapper map = vtkPolyDataMapper.New(); map.SetInput(rdr.GetOutput()); // L'acteur représente l'entitée géométrique. // Il permet de définir sa position, son orientation, sa couleur, etc. vtkActor aSphere = new vtkActor(); aSphere.SetMapper(map); aSphere.GetProperty().SetColor(0.8, 0.8, 0.8); // color blue // Nous créons un renderer qui va faire le rendu de notre entitée. vtkRenderer ren1 = vtkRenderer.New(); ren1.AddActor(aSphere); ren1.SetBackground(1, 1, 1); // background color white // Nous créons une fenêtre de rendu vtkRenderWindow renWin = vtkRenderWindow.New(); renWin.AddRenderer(ren1); renWin.SetSize(300, 300); // Nous créons un interactor qui permet de bouger la caméra. vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor(); iren.SetRenderWindow(renWin); // Nous lançons le rendu et l'interaction renWin.Render(); iren.Start(); ////// CLEANUP /////// rdr.Dispose(); map.Dispose(); aSphere.Dispose(); ren1.Dispose(); renWin.Dispose(); iren.Dispose(); }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (sphere != null) { sphere.Dispose(); } if (sphereMapper != null) { sphereMapper.Dispose(); } if (sphereActor != null) { sphereActor.Dispose(); } if (rt != null) { rt.Dispose(); } if (voi != null) { voi.Dispose(); } if (surf != null) { surf.Dispose(); } if (tris != null) { tris.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 (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (pl3d != null) { pl3d.Dispose(); } if (plane1 != null) { plane1.Dispose(); } if (conn != null) { conn.Dispose(); } if (plane1Map != null) { plane1Map.Dispose(); } if (plane1Actor != null) { plane1Actor.Dispose(); } if (outline != null) { outline.Dispose(); } if (outlineMapper != null) { outlineMapper.Dispose(); } if (outlineActor != null) { outlineActor.Dispose(); } if (outlineProp != null) { outlineProp.Dispose(); } if (cam1 != null) { cam1.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (rgridReader != null) { rgridReader.Dispose(); } if (outline != null) { outline.Dispose(); } if (mapper != null) { mapper.Dispose(); } if (actor != null) { actor.Dispose(); } if (extract1 != null) { extract1.Dispose(); } if (surf1 != null) { surf1.Dispose(); } if (tris != null) { tris.Dispose(); } if (mapper1 != null) { mapper1.Dispose(); } if (actor1 != null) { actor1.Dispose(); } if (rectWriter != null) { rectWriter.Dispose(); } if (ren1 != null) { ren1.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 (reader != null) { reader.Dispose(); } if (ds2do != null) { ds2do.Dispose(); } if (writer != null) { writer.Dispose(); } if (dor != null) { dor.Dispose(); } if (do2ds != null) { do2ds.Dispose(); } if (fd2ad != null) { fd2ad.Dispose(); } if (mapper != null) { mapper.Dispose(); } if (actor != null) { actor.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (cam1 != null) { cam1.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (v16 != null) { v16.Dispose(); } if (iso != null) { iso.Dispose(); } if (isoMapper != null) { isoMapper.Dispose(); } if (isoActor != null) { isoActor.Dispose(); } if (mask != null) { mask.Dispose(); } if (visPts != null) { visPts.Dispose(); } if (ldm != null) { ldm.Dispose(); } if (tprop != null) { tprop.Dispose(); } if (contourLabels != null) { contourLabels.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (sphere != null) { sphere.Dispose(); } if (piece != null) { piece.Dispose(); } if (pdn != null) { pdn.Dispose(); } if (deci != null) { deci.Dispose(); } if (q != null) { q.Dispose(); } if (streamer != null) { streamer.Dispose(); } if (mapper != null) { mapper.Dispose(); } if (actor != null) { actor.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (data != null) { data.Dispose(); } if (gauss != null) { gauss.Dispose(); } if (a != null) { a.Dispose(); } if (ellipse != null) { ellipse.Dispose(); } if (m != null) { m.Dispose(); } if (cut != null) { cut.Dispose(); } if (mapper2 != null) { mapper2.Dispose(); } if (actor2 != null) { actor2.Dispose(); } if (ren != null) { ren.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (disposing) { if (_dynamicRenderEventPublisher != null) { _dynamicRenderEventPublisher.Cancel(); _dynamicRenderEventPublisher.Dispose(); _dynamicRenderEventPublisher = null; } if (_vtkRenderWindow != null) { _vtkRenderWindow.Dispose(); _vtkRenderWindow = null; } if (_vtkRenderer != null) { _vtkRenderer.Dispose(); _vtkRenderer = null; } if (_sceneGraphRoot != null) { _sceneGraphRoot.Dispose(); _sceneGraphRoot = null; } if (_imageBuffer != null) { _imageBuffer.Dispose(); _imageBuffer = null; } if (_overlayBuffer != null) { _overlayBuffer.Dispose(); _overlayBuffer = null; } if (_finalBuffer != null) { _finalBuffer.Dispose(); _finalBuffer = null; } } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (sphere != null) { sphere.Dispose(); } if (selectionPoints != null) { selectionPoints.Dispose(); } if (loop != null) { loop.Dispose(); } if (extract != null) { extract.Dispose(); } if (connect != null) { connect.Dispose(); } if (clipMapper != null) { clipMapper.Dispose(); } if (backProp != null) { backProp.Dispose(); } if (clipActor != null) { clipActor.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } }
/// <summary> /// Clean Up /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Form1_FormClosed(object sender, FormClosedEventArgs e) { if (view != null) { view.Dispose(); } if (logoRenderer != null) { logoRenderer.Dispose(); } if (logoActor != null) { logoActor.Dispose(); } view = null; System.GC.Collect(); }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (alg != null) { alg.Dispose(); } if (pip != null) { pip.Dispose(); } if (Ren1 != null) { Ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (pvTemp59 != null) { pvTemp59.Dispose(); } if (pvTemp79 != null) { pvTemp79.Dispose(); } if (pvTemp104 != null) { pvTemp104.Dispose(); } if (pvTemp87 != null) { pvTemp87.Dispose(); } if (pvTemp88 != null) { pvTemp88.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (renWin != null) { renWin.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (puzzle != null) { puzzle.Dispose(); } if (mapper != null) { mapper.Dispose(); } if (actor != null) { actor.Dispose(); } if (arrows != null) { arrows.Dispose(); } if (mapper2 != null) { mapper2.Dispose(); } if (actor2 != null) { actor2.Dispose(); } if (cam != null) { cam.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (reader != null) { reader.Dispose(); } if (elev != null) { elev.Dispose(); } if (outline != null) { outline.Dispose(); } if (outlineMapper != null) { outlineMapper.Dispose(); } if (outlineActor != null) { outlineActor.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (cam1 != null) { cam1.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(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (reader != null) { reader.Dispose(); } if (magnify != null) { magnify.Dispose(); } if (image_cursor != null) { image_cursor.Dispose(); } if (axes != null) { axes.Dispose(); } if (axes_mapper != null) { axes_mapper.Dispose(); } if (axesActor != null) { axesActor.Dispose(); } if (viewer != null) { viewer.Dispose(); } if (opacity_transfer_function != null) { opacity_transfer_function.Dispose(); } if (color_transfer_function != null) { color_transfer_function.Dispose(); } if (volume_property != null) { volume_property.Dispose(); } if (composite_function != null) { composite_function.Dispose(); } if (volume_mapper != null) { volume_mapper.Dispose(); } if (volume != null) { volume.Dispose(); } if (outline != null) { outline.Dispose(); } if (outline_mapper != null) { outline_mapper.Dispose(); } if (outlineActor != null) { outlineActor.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (renWin2 != null) { renWin2.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (pl3d != null) { pl3d.Dispose(); } if (gf != null) { gf.Dispose(); } if (gMapper != null) { gMapper.Dispose(); } if (gActor != null) { gActor.Dispose(); } if (gf2 != null) { gf2.Dispose(); } if (g2Mapper != null) { g2Mapper.Dispose(); } if (g2Actor != null) { g2Actor.Dispose(); } if (gf3 != null) { gf3.Dispose(); } if (g3Mapper != null) { g3Mapper.Dispose(); } if (g3Actor != null) { g3Actor.Dispose(); } if (gf4 != null) { gf4.Dispose(); } if (g4Mapper != null) { g4Mapper.Dispose(); } if (g4Actor != null) { g4Actor.Dispose(); } if (s != null) { s.Dispose(); } if (eg != null) { eg.Dispose(); } if (gf5 != null) { gf5.Dispose(); } if (g5Mapper != null) { g5Mapper.Dispose(); } if (g5Actor != null) { g5Actor.Dispose(); } if (gf6 != null) { gf6.Dispose(); } if (g6Mapper != null) { g6Mapper.Dispose(); } if (g6Actor != null) { g6Actor.Dispose(); } if (rgridReader != null) { rgridReader.Dispose(); } if (gf7 != null) { gf7.Dispose(); } if (g7Mapper != null) { g7Mapper.Dispose(); } if (g7Actor != null) { g7Actor.Dispose(); } if (gf8 != null) { gf8.Dispose(); } if (g8Mapper != null) { g8Mapper.Dispose(); } if (g8Actor != null) { g8Actor.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (cam1 != null) { cam1.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (fohe != null) { fohe.Dispose(); } if (normals != null) { normals.Dispose(); } if (foheMapper != null) { foheMapper.Dispose(); } if (foheActor != null) { foheActor.Dispose(); } if (outline != null) { outline.Dispose(); } if (mapOutline != null) { mapOutline.Dispose(); } if (outlineActor != null) { outlineActor.Dispose(); } if (camera != null) { camera.Dispose(); } if (light != null) { light.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (ren2 != null) { ren2.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (tprop != null) { tprop.Dispose(); } if (axes != null) { axes.Dispose(); } if (axes2 != null) { axes2.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (gs != null) { gs.Dispose(); } if (t != null) { t.Dispose(); } if (ss != null) { ss.Dispose(); } if (grid0 != null) { grid0.Dispose(); } if (d != null) { d.Dispose(); } if (iac != null) { iac.Dispose(); } if (gs1 != null) { gs1.Dispose(); } if (t1 != null) { t1.Dispose(); } if (gs2 != null) { gs2.Dispose(); } if (gs3 != null) { gs3.Dispose(); } if (t3 != null) { t3.Dispose(); } if (gs4 != null) { gs4.Dispose(); } if (iac1 != null) { iac1.Dispose(); } if (iac2 != null) { iac2.Dispose(); } if (iac3 != null) { iac3.Dispose(); } if (gridR != null) { gridR.Dispose(); } if (dR != null) { dR.Dispose(); } if (gridG != null) { gridG.Dispose(); } if (dG != null) { dG.Dispose(); } if (gridB != null) { gridB.Dispose(); } if (dB != null) { dB.Dispose(); } if (iacRG != null) { iacRG.Dispose(); } if (iacRGB != null) { iacRGB.Dispose(); } if (iacRGBA != null) { iacRGBA.Dispose(); } if (rampPoint2 != null) { rampPoint2.Dispose(); } if (ramp1 != null) { ramp1.Dispose(); } if (surface != null) { surface.Dispose(); } if (constant1 != null) { constant1.Dispose(); } if (gop != null) { gop.Dispose(); } if (rainbow != null) { rainbow.Dispose(); } if (red != null) { red.Dispose(); } if (green != null) { green.Dispose(); } if (blue != null) { blue.Dispose(); } if (yellow != null) { yellow.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (culler != null) { culler.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } if (ptLoad != null) { ptLoad.Dispose(); } if (plane != null) { plane.Dispose(); } if (sphere != null) { sphere.Dispose(); } if (ellipsoids != null) { ellipsoids.Dispose(); } if (ellipNormals != null) { ellipNormals.Dispose(); } if (lut != null) { lut.Dispose(); } if (ellipMapper != null) { ellipMapper.Dispose(); } if (ellipActor != null) { ellipActor.Dispose(); } if (outline != null) { outline.Dispose(); } if (outlineMapper != null) { outlineMapper.Dispose(); } if (outlineActor != null) { outlineActor.Dispose(); } if (coneSrc != null) { coneSrc.Dispose(); } if (coneMap != null) { coneMap.Dispose(); } if (coneActor != null) { coneActor.Dispose(); } if (camera != null) { camera.Dispose(); } }
///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects if (reader != null) { reader.Dispose(); } if (ds2do != null) { ds2do.Dispose(); } if (write != null) { write.Dispose(); } if (dor != null) { dor.Dispose(); } if (do2ds != null) { do2ds.Dispose(); } if (fd2ad != null) { fd2ad.Dispose(); } if (warp != null) { warp.Dispose(); } if (connect != null) { connect.Dispose(); } if (moldMapper != null) { moldMapper.Dispose(); } if (moldActor != null) { moldActor.Dispose(); } if (connect2 != null) { connect2.Dispose(); } if (parison != null) { parison.Dispose(); } if (normals2 != null) { normals2.Dispose(); } if (lut != null) { lut.Dispose(); } if (parisonMapper != null) { parisonMapper.Dispose(); } if (parisonActor != null) { parisonActor.Dispose(); } if (cf != null) { cf.Dispose(); } if (contourMapper != null) { contourMapper.Dispose(); } if (contours != null) { contours.Dispose(); } if (ren1 != null) { ren1.Dispose(); } if (renWin != null) { renWin.Dispose(); } if (iren != null) { iren.Dispose(); } }