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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Tue Aug 10 13:06:37 CDT 2010


Author: janehu
Date: 2010-08-10 13:06:37 -0500 (Tue, 10 Aug 2010)
New Revision: 4076

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
fix for modify test on draft option for different directions of sweeping. will add one test on modify.cpp.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2010-08-10 16:20:01 UTC (rev 4075)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2010-08-10 18:06:37 UTC (rev 4076)
@@ -2842,7 +2842,9 @@
      sprintf(message, "Imprinting %d OCC Bodies", from_body_list.size() ); 
      AppUtil::instance()->progress_tool()->start(0, total_imprints, message);
   }
-
+  
+  //double volume;
+  //CubitVector center;
   for(int i = 0; i < size; i++)
   {
     TopoDS_Shape* shape1 = shape_list[i];
@@ -4064,8 +4066,8 @@
             OCCCoEdge* temp_coedge = coedges[j];
             if(temp_coedge == NULL)
               continue; 
-            if(coedge->curve() == temp_coedge->curve() &&
-               coedge->sense() != temp_coedge->sense())
+            if(coedge->curve() == temp_coedge->curve()) //Since the shell 
+            // is open, the sense of curve can be either the same or opposite. 
             {
               coedges.move_to(coedge);
               coedges.change_to((OCCCoEdge*)NULL);



























More information about the cgma-dev mailing list