[MOAB-dev] r1474 - MOAB/trunk/tools/qvdual

tautges at mcs.anl.gov tautges at mcs.anl.gov
Mon Dec 17 08:55:03 CST 2007


Author: tautges
Date: 2007-12-17 08:55:03 -0600 (Mon, 17 Dec 2007)
New Revision: 1474

Modified:
   MOAB/trunk/tools/qvdual/DrawDual.cpp
   MOAB/trunk/tools/qvdual/vtkMOABUtils.cxx
Log:
Some more cleanup of unused objects in vtk.

Modified: MOAB/trunk/tools/qvdual/DrawDual.cpp
===================================================================
--- MOAB/trunk/tools/qvdual/DrawDual.cpp	2007-12-14 22:58:11 UTC (rev 1473)
+++ MOAB/trunk/tools/qvdual/DrawDual.cpp	2007-12-17 14:55:03 UTC (rev 1474)
@@ -1365,6 +1365,7 @@
       this_property->SetColor(red, green, blue);
     
       this_ren->AddActor(this_actor);
+      this_actor->FastDelete();
     }
 
     vtkCamera *camera = vtkCamera::New();

Modified: MOAB/trunk/tools/qvdual/vtkMOABUtils.cxx
===================================================================
--- MOAB/trunk/tools/qvdual/vtkMOABUtils.cxx	2007-12-14 22:58:11 UTC (rev 1473)
+++ MOAB/trunk/tools/qvdual/vtkMOABUtils.cxx	2007-12-17 14:55:03 UTC (rev 1474)
@@ -460,9 +460,9 @@
 
         // don't act on root entity set (that'll be the only one not connected
         // to an extract cells filter)
-      if (NULL == ec) continue;
+      
         // empty out the extract cells filter
-      ec->SetCellList(ids);
+      if (NULL != ec) ec->SetCellList(ids);
       ids->Delete();
       continue;
     }




More information about the moab-dev mailing list