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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Wed Jan 25 12:36:13 CST 2012


Author: janehu
Date: 2012-01-25 12:36:13 -0600 (Wed, 25 Jan 2012)
New Revision: 5346

Modified:
   cgm/trunk/geom/OCC/OCCLump.cpp
Log:
Removed the debug version of OCCLump.cpp, left the simple code for it.

Modified: cgm/trunk/geom/OCC/OCCLump.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCLump.cpp	2012-01-25 18:33:53 UTC (rev 5345)
+++ cgm/trunk/geom/OCC/OCCLump.cpp	2012-01-25 18:36:13 UTC (rev 5346)
@@ -374,24 +374,12 @@
   assert(aBRepTrsf != NULL || op != NULL);
  
   TopoDS_Shape shape;
-  TopTools_ListOfShape shapes;
- 
   if(aBRepTrsf)
-  {
-    shapes = aBRepTrsf->Modified(*get_TopoDS_Solid());
-    if(shapes.Extent() == 1)
-      shape = shapes.First();
-    else
-    {
-      PRINT_ERROR("Tranformation is wrong. \n");
-      return CUBIT_FAILURE;
-    }
-  }
- 
-    //shape = aBRepTrsf->ModifiedShape(*get_TopoDS_Solid());
+    shape = aBRepTrsf->ModifiedShape(*get_TopoDS_Solid());
 
   else
   {
+    TopTools_ListOfShape shapes;
     shapes.Assign(op->Modified(*get_TopoDS_Solid()));
     if(shapes.Extent() == 0)
       shapes.Assign(op->Generated(*get_TopoDS_Solid()));






















More information about the cgma-dev mailing list