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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Fri Jul 15 12:28:55 CDT 2011


Author: janehu
Date: 2011-07-15 12:28:55 -0500 (Fri, 15 Jul 2011)
New Revision: 5061

Modified:
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
Log:
To avoid unnecessary binding of the TopoShape, directly set the new_shape in the Shape_Label_Map, fixed assygen failure problem in meshkit/rgg.

Modified: cgm/trunk/geom/OCC/OCCQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2011-07-15 14:21:12 UTC (rev 5060)
+++ cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2011-07-15 17:28:55 UTC (rev 5061)
@@ -3594,8 +3594,14 @@
     return -1;
 
   //update the attribute label tree
-  copy_attributes(old_shape, new_shape); 
-  OCCAttribSet::remove_attribute(old_shape);
+  int current_id = OCCMap->Find(old_shape);
+  std::map<int, TDF_Label>::iterator it_lab =
+          Shape_Label_Map->find(current_id);
+  if(it_lab != Shape_Label_Map->end())
+  {
+     TDF_Label aLabel = (*it_lab).second;
+     Handle_TDataXtd_Shape attr_shape = TDataXtd_Shape::Set(aLabel, new_shape);
+  }
 
   //update CGM-OCC map
   int k = OCCMap->Find(old_shape);
































More information about the cgma-dev mailing list