[cgma-dev] r4080 - cgm/trunk/test

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Wed Aug 11 12:43:49 CDT 2010


Author: janehu
Date: 2010-08-11 12:43:49 -0500 (Wed, 11 Aug 2010)
New Revision: 4080

Modified:
   cgm/trunk/test/modify.cpp
Log:
Get rid of volume id's since they are changing each time adding testcase.

Modified: cgm/trunk/test/modify.cpp
===================================================================
--- cgm/trunk/test/modify.cpp	2010-08-11 17:20:39 UTC (rev 4079)
+++ cgm/trunk/test/modify.cpp	2010-08-11 17:43:49 UTC (rev 4080)
@@ -404,8 +404,6 @@
   //GeometryModifyEngine *gme = gmti->get_engine(occ_surfaces.get());
   new_bodies.clean_out();
   gmti->create_solid_bodies_from_surfs(face_list, new_bodies);
-  //Created volume(s): 13 
-  //Destroyed volume(s): 6 to 11
 
   ref_entity_list.clean_out();
   num_ents_exported=0;
@@ -505,8 +503,6 @@
   new_bodies.clean_out();
   rsl = gmti->subtract(from_body2, from_bodies, new_bodies, 
                        CUBIT_TRUE, CUBIT_FALSE);
-  //Updated volume(s): 23
-  //Destroyed volume(s): 24
   //new bodies has one body, new body has 10 ref-faces, 5 of them are remaining
   //with old id, 5 of them are new faces.
   assert(new_bodies.size() == 1);
@@ -516,8 +512,6 @@
   new_bodies.clean_out();
   rsl = gmti->subtract(tool_body,from_bodies, new_bodies,
                        CUBIT_TRUE, CUBIT_FALSE);
-  //Created volume(s): 26, 27
-  //Destroyed volume(s): 23, 25
   d = new_bodies.step_and_get()->measure(); //d = 50
   v = new_bodies.get()->center_point(); //v = (7.5, 5, .05)
   n = new_bodies.get()->num_ref_faces();
@@ -555,7 +549,6 @@
   from_bodies.append(cp_from_body);
   new_bodies.clean_out();
   CubitStatus stat = gmti->imprint(from_bodies, ref_edges, new_bodies, CUBIT_FALSE, CUBIT_TRUE );
-  //Updated volume(s): 30
   assert(new_bodies.get()->num_ref_faces() == 8);
 
   //test edge imprint on surface
@@ -576,7 +569,6 @@
   ref_edges.step_and_get()->ref_vertices(vertices);
   new_bodies.clean_out();
   stat = gmti->imprint(unimprint_faces, ref_edges, new_bodies, CUBIT_FALSE);
-  //Updated volume(s): 31
   assert(new_bodies.get()->num_ref_faces() == 6);
 
   new_bodies.clean_out();
@@ -603,13 +595,11 @@
   from_bodies.append(cp_from_body2);
   new_bodies.clean_out(); 
   stat = gmti->imprint(from_bodies, vectors, new_bodies, CUBIT_FALSE);


More information about the cgma-dev mailing list