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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Tue May 24 10:15:33 CDT 2011


Author: janehu
Date: 2011-05-24 10:15:30 -0500 (Tue, 24 May 2011)
New Revision: 4862

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
   cgm/trunk/geom/OCC/OCCModifyEngine.hpp
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
Log:
Fixed the problem reported for webcut failure by Yu Wenhui, testcase is in modify.cpp.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2011-05-23 17:49:06 UTC (rev 4861)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2011-05-24 15:15:30 UTC (rev 4862)
@@ -135,7 +135,6 @@
 #include "OCCCurve.hpp"
 #include "OCCPoint.hpp"
 #include "OCCAttribSet.hpp"
-#include "OCCHistory.hpp"
 #include "CubitFileIOWrapper.hpp"
 #include "Body.hpp"
 #include "GfxDebug.hpp"
@@ -1747,16 +1746,6 @@
 //===============================================================================
 BodySM* OCCModifyEngine::copy_body ( BodySM* bodyPtr ) const
 {
-  OCCHistory history_object;
-  if( GeometryQueryTool::instance()->history().is_tracking() )
-  {
-    history_object.highLevelCopying = true;
-    DLIList<TopologyBridge*> my_bridges(1);
-    TopologyBridge *tb = CAST_TO( bodyPtr, TopologyBridge );
-    my_bridges.append( tb );
-    OCCModifyEngine::instance()->start_tracking_history( my_bridges, history_object );
-  }
-
   BodySM* new_body = NULL;
   OCCBody* occ_body = CAST_TO(bodyPtr, OCCBody);
   if (!occ_body)
@@ -1823,13 +1812,6 @@
     new_body = OCCQueryEngine::instance()->populate_topology_bridge(newCS);
   }
   
-  if( GeometryQueryTool::instance()->history().is_tracking() )
-  {
-    DLIList<BodySM*> new_bodies(1);
-    new_bodies.append( new_body );
-    OCCModifyEngine::instance()->stop_tracking_history( new_bodies, history_object );
-  }
-
   return new_body;
 }
 
@@ -5241,13 +5223,12 @@
                                 ImprintType imprint_type,
                                 bool preview ) const
 {
-  // tool_bldy and webct_body_list will be kept and webcut result is in 
+  // tool_body and webct_body_list will be kept and webcut result is in 
   //results_list.
   //tool_body is a const pointer points to varible BodySM object


More information about the cgma-dev mailing list