[cgma-dev] r5385 - cgm/trunk/geom/OCC
    jiangtao_ma at yahoo.com 
    jiangtao_ma at yahoo.com
       
    Thu Feb  9 10:49:58 CST 2012
    
    
  
Author: janehu
Date: 2012-02-09 10:49:58 -0600 (Thu, 09 Feb 2012)
New Revision: 5385
Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
Added the some clean up code for skin surfaces creation code, still passes the make check tests.
Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2012-02-09 16:24:13 UTC (rev 5384)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2012-02-09 16:49:58 UTC (rev 5385)
@@ -847,6 +847,14 @@
      //loft curves.
      BRepOffsetAPI_ThruSections loft(CUBIT_FALSE);
      CubitStatus stat = do_loft(loft, topo_edges_loops);
+     for (int i = 0; i < topo_edges_loops.size(); i++)
+     {
+       DLIList<TopoDS_Edge*>* topo_edges = topo_edges_loops.get_and_step();
+       for(int j = 0; j < topo_edges->size(); j++)
+         topo_edges->pop();
+       delete topo_edges;
+       topo_edges = NULL;
+     }
      if(!stat)
        return (Surface*) NULL;
 
    
    
More information about the cgma-dev
mailing list