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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Thu Dec 8 12:42:38 CST 2011


Author: janehu
Date: 2011-12-08 12:42:38 -0600 (Thu, 08 Dec 2011)
New Revision: 5242

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
Not intended to check in OCCModifyEngine.cpp yet.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2011-12-08 18:39:44 UTC (rev 5241)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2011-12-08 18:42:38 UTC (rev 5242)
@@ -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,10 +2477,8 @@
             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
         }
@@ -2725,10 +2723,9 @@
             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++)
@@ -2937,10 +2934,8 @@
 	  TopoDS_Face* topo_face = new TopoDS_Face(from_face);
 	  from_faces.append(topo_face);
 	} 
-/*
       if (need_1_split)
         break;
-*/
     }
   
   






More information about the cgma-dev mailing list