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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Thu Apr 19 11:12:15 CDT 2012


Author: janehu
Date: 2012-04-19 11:12:14 -0500 (Thu, 19 Apr 2012)
New Revision: 5486

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
Polished from r5483

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2012-04-18 20:49:28 UTC (rev 5485)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2012-04-19 16:12:14 UTC (rev 5486)
@@ -1983,13 +1983,13 @@
         OCCShell* orig_shell = (OCCShell*) (OCCQueryEngine::instance()->OccToCGM->find(k))->second;
         body = orig_shell->my_body();
       }
-      else
-        body = (OCCBody*) (OCCQueryEngine::instance()->OccToCGM->find(k))->second;
+      //Solid and Compound case has been considered in the above cases.
       if(body)
       {
+        OCCBody* new_body = surf->my_body();
         body->get_simple_attribute(list);
         for (int kk = 0; kk < list.size(); kk++) 
-          surf->my_body()->append_simple_attribute_virt(list.get_and_step());
+          new_body->append_simple_attribute_virt(list.get_and_step());
       }
     }
   }
































More information about the cgma-dev mailing list