[cgma-dev] r4678 - cgm/branches/merge-cubit12/geom

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Tue Mar 29 10:50:32 CDT 2011


Author: janehu
Date: 2011-03-29 10:50:32 -0500 (Tue, 29 Mar 2011)
New Revision: 4678

Modified:
   cgm/branches/merge-cubit12/geom/GeometryModifyTool.cpp
Log:
several sweep functions are not returning the created entity in the cubit12 version, just added this part and fixed modify test case.

Modified: cgm/branches/merge-cubit12/geom/GeometryModifyTool.cpp
===================================================================
--- cgm/branches/merge-cubit12/geom/GeometryModifyTool.cpp	2011-03-29 15:21:46 UTC (rev 4677)
+++ cgm/branches/merge-cubit12/geom/GeometryModifyTool.cpp	2011-03-29 15:50:32 UTC (rev 4678)
@@ -3851,6 +3851,15 @@
       CubitUndo::note_result_bodies( output_body_list );
   }
 
+  body_list.clean_out();
+  for(int i = 0; i < result_list.size(); i++)
+  {
+    Body* body = CAST_TO(result_list.get_and_step()->topology_entity(),Body );
+    if(body)
+      body_list.append(body);
+  }
+  CAST_LIST( body_list, ref_ent_list, RefEntity);
+
   return status;
 }
 
@@ -3908,6 +3917,14 @@
       CubitUndo::note_result_bodies( output_body_list );
   }
 
+  body_list.clean_out();
+  for(int i = 0; i < result_list.size(); i++)
+  {
+    Body* body = CAST_TO(result_list.get_and_step()->topology_entity(),Body );
+    if(body)
+      body_list.append(body);
+  }
+  CAST_LIST( body_list, ref_ent_list, RefEntity);
   return status;
 }
 
@@ -4793,6 +4810,14 @@
       CubitUndo::note_result_bodies( output_body_list );
   }
 
+  body_list.clean_out();
+  for(int i = 0; i < result_list.size(); i++)
+  {
+    Body* body = CAST_TO(result_list.get_and_step()->topology_entity(),Body );
+    if(body)
+      body_list.append(body);
+  }
+  CAST_LIST( body_list, ref_ent_list, RefEntity);
   return status;
 }
 CubitStatus GeometryModifyTool::sweep_along_curve(DLIList<RefEntity*>& ref_ent_list,
@@ -4854,6 +4879,14 @@


More information about the cgma-dev mailing list