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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Thu Dec 8 12:37:59 CST 2011


Author: janehu
Date: 2011-12-08 12:37:56 -0600 (Thu, 08 Dec 2011)
New Revision: 5240

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
Log:
Fixed the user reported bug in get_graphics functions. Passed make check in cgm.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2011-12-07 19:04:04 UTC (rev 5239)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2011-12-08 18:37:56 UTC (rev 5240)
@@ -2204,7 +2204,7 @@
 
   //list of face on from_shape that has been imprinted
   DLIList<TopoDS_Face*> from_faces; 
-  CubitBoolean need_1_split = CUBIT_FALSE;
+  //CubitBoolean need_1_split = CUBIT_FALSE;
   while( more_face)
     {
       TopoDS_Face from_face,tool_face;
@@ -2477,8 +2477,10 @@
             if(fabs(-after_mass + orig_mass) > TOL && after_mass > TOL)
               return 1; 
           }
+/*
           else
             need_1_split = CUBIT_TRUE;
+*/
           //have to use boolean operation, see 
           //http://www.opencascade.org/org/forum/thread_20672/ for more info
         }
@@ -2723,9 +2725,10 @@
             CubitBox* pbox = new CubitBox(box);
             bs.append(pbox);
           }
+/*
           if(size > 1)
             need_1_split = CUBIT_TRUE;
-
+*/
           bs.append((CubitBox*) NULL);
 
           for(int i = 0; i < size-1; i++)
@@ -2934,8 +2937,10 @@
 	  TopoDS_Face* topo_face = new TopoDS_Face(from_face);
 	  from_faces.append(topo_face);
 	} 
+/*
       if (need_1_split)
         break;
+*/
     }
   
   

Modified: cgm/trunk/geom/OCC/OCCQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2011-12-07 19:04:04 UTC (rev 5239)


More information about the cgma-dev mailing list