[cgma-dev] r2472 - cgm/trunk/geom/OCC

janehu at mcs.anl.gov janehu at mcs.anl.gov
Fri Dec 5 15:00:12 CST 2008


Author: janehu
Date: 2008-12-05 15:00:12 -0600 (Fri, 05 Dec 2008)
New Revision: 2472

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
   cgm/trunk/geom/OCC/OCCShapeAttributeSet.hpp
Log:
Minor changes for memory clean up.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2008-12-04 19:47:25 UTC (rev 2471)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2008-12-05 21:00:12 UTC (rev 2472)
@@ -4312,7 +4312,7 @@
       result_body_list.append(bodysm);
     continue;
   }
-  delete acurve;
+  OCCQueryEngine::instance()->delete_solid_model_entities(acurve);
   return CUBIT_SUCCESS;
 }
 

Modified: cgm/trunk/geom/OCC/OCCShapeAttributeSet.hpp
===================================================================
--- cgm/trunk/geom/OCC/OCCShapeAttributeSet.hpp	2008-12-04 19:47:25 UTC (rev 2471)
+++ cgm/trunk/geom/OCC/OCCShapeAttributeSet.hpp	2008-12-05 21:00:12 UTC (rev 2472)
@@ -67,6 +67,8 @@
 
 OCCShapeAttributeSet(const BRep_Builder& B);
 
+~OCCShapeAttributeSet(){Clear();} ;
+
 //! Stores the goemetry of <S>. <br>
 void AddGeometry(const TopoDS_Shape& S) ;
 
@@ -132,6 +134,7 @@
 
 void ReadTriangulation(Standard_IStream& IS);
 
+//! Clears the content of the set.
 void  Clear();
 
 void Check(const TopAbs_ShapeEnum T,TopoDS_Shape& S);




More information about the cgma-dev mailing list