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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Thu Mar 26 08:51:46 CDT 2009


Author: janehu
Date: 2009-03-26 08:51:45 -0500 (Thu, 26 Mar 2009)
New Revision: 2755

Modified:
   cgm/trunk/test/modify.cpp
Log:
Fixed the nightly test failure.

Modified: cgm/trunk/test/modify.cpp
===================================================================
--- cgm/trunk/test/modify.cpp	2009-03-26 00:16:24 UTC (rev 2754)
+++ cgm/trunk/test/modify.cpp	2009-03-26 13:51:45 UTC (rev 2755)
@@ -79,7 +79,7 @@
      PRINT_INFO("Operation Failed");
 
   int ret_val = ( CubitMessage::instance()->error_count() );
-  if ( ret_val != 5 )
+  if ( ret_val != 7 )
   {
     PRINT_ERROR("Errors found during Mergechk session.\n");
   }
@@ -330,8 +330,8 @@
   //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): 9 
-  //Destroyed volume(s): 2 to 7
+  //Created volume(s): 12 
+  //Destroyed volume(s): 5 to 10
 
   ref_entity_list.clean_out();
   num_ents_exported=0;
@@ -427,8 +427,8 @@
   new_bodies.clean_out();
   rsl = gmti->subtract(from_body2, from_bodies, new_bodies, 
                        CUBIT_TRUE, CUBIT_FALSE);
-  //Updated volume(s): 19
-  //Destroyed volume(s): 20
+  //Updated volume(s): 22
+  //Destroyed volume(s): 23
   //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.
 
@@ -436,8 +436,8 @@
   new_bodies.clean_out();
   rsl = gmti->subtract(tool_body,from_bodies, new_bodies,
                        CUBIT_TRUE, CUBIT_FALSE);
-  //Created volume(s): 22, 23
-  //Destroyed volume(s): 19, 21
+  //Created volume(s): 25, 26
+  //Destroyed volume(s): 22, 24
   d = new_bodies.step_and_get()->measure(); //d = 50
   v = new_bodies.get()->center_point(); //v = (7.5, 5, .05)
   int n = new_bodies.get()->num_ref_faces();
@@ -472,7 +472,7 @@
   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): 26
+  //Updated volume(s): 29
 
   //test edge imprint on surface
   CubitVector vv(5,1,4.0);
@@ -491,7 +491,7 @@
   assert(face_list.size() == 1);
   ref_edges.step_and_get()->ref_vertices(vertices);
   stat = gmti->imprint(unimprint_faces, ref_edges, new_bodies, CUBIT_FALSE);
-  //Updated volume(s): 27
+  //Updated volume(s): 30
 
   new_bodies.clean_out();
   face_list.clean_out();
@@ -517,13 +517,13 @@
   from_bodies.append(cp_from_body2);
   new_bodies.clean_out(); 
   stat = gmti->imprint(from_bodies, vectors, new_bodies, CUBIT_FALSE);
-  //Updated volume(s): 27
+  //Updated volume(s): 30
 
   n = new_bodies.get()->num_ref_edges();//n = 17
 
   new_bodies.clean_out();
   stat = gmti->imprint(face_list, ref_edges, new_bodies, CUBIT_FALSE);
-  //Updated volume(s): 27
+  //Updated volume(s): 30
 
   n = new_bodies.get()->num_ref_edges();//n = 21
 
@@ -533,8 +533,8 @@
   new_bodies.clean_out();
   rsl = gmti->subtract(tool_body, from_bodies, new_bodies,
                        CUBIT_TRUE, CUBIT_FALSE);
-  //Updated volume(s): 24
-  //Destroyed volume(s): 25
+  //Updated volume(s): 27
+  //Destroyed volume(s): 28
 
   n = new_bodies.get()->num_ref_faces();
   //n = 8
@@ -612,7 +612,7 @@
   from_bodies.append(copy_tool_body);
   from_bodies.append(from_body2);
   stat = gmti->imprint(from_bodies, new_bodies, CUBIT_FALSE); 
-  //Updated volume(s): 32 one body gets cut once with 7 faces, the other is not
+  //Updated volume(s): 35 one body gets cut once with 7 faces, the other is not
 
   //test body imprinted by curves.
   ref_edges.clean_out();
@@ -621,7 +621,7 @@
   new_bodies.clean_out();
   from_bodies.append(copy_tool_body2);
   stat = gmti->imprint(from_bodies, ref_edges, new_bodies, CUBIT_FALSE, CUBIT_TRUE );
-  //Updated volume(s): 33, no cuts performed
+  //Updated volume(s): 36, no cuts performed
 
   //test body cutting a shell, one surface got cut as the result. 
   CubitVector v_move6(1,-1,0);
@@ -631,7 +631,7 @@
   new_bodies.clean_out();
   rsl = gmti->subtract(tool_body, from_bodies, new_bodies,
                        CUBIT_TRUE, CUBIT_TRUE);
-  //Created volume(s): 34
+  //Created volume(s): 37
 
   d = new_bodies.step_and_get()->measure();
   v = new_bodies.get()->center_point();
@@ -658,7 +658,7 @@
   from_bodies.append(from_body);
   from_bodies.append(tool_body);
   stat =  gmti->imprint(from_bodies, new_bodies, CUBIT_FALSE);
-  //Updated volume(s): 35, 36
+  //Updated volume(s): 38, 39
   //one body gets 4 cuts, the other 3.
   //one body gets 10 faces, the other 9.
   
@@ -684,7 +684,7 @@
   new_bodies.clean_out();
   gmti->imprint_projected_edges(ref_faces,ref_edges, new_bodies, CUBIT_TRUE,
        CUBIT_FALSE); 
-  //Created volume(s): 39
+  //Created volume(s): 42
   if(new_bodies.size())
     n = new_bodies.get()->num_ref_faces();//n = 8, new_bodies.size() == 1
 
@@ -708,8 +708,8 @@
   new_bodies.clean_out();
   from_bodies.append(from_body);
   stat =  gmti->intersect(tool_body, from_bodies, new_bodies, CUBIT_FALSE);
-  //Updated volume(s): 41
-  //Destroyed volume(s): 40
+  //Updated volume(s): 44
+  //Destroyed volume(s): 43
   d = new_bodies.get()->measure(); //d = 1
   
   //2. common body is part of from body, update the correponding face
@@ -720,8 +720,8 @@
   new_bodies.clean_out();
   stat =  gmti->intersect(tool_body, from_bodies, new_bodies, CUBIT_FALSE);
   d = new_bodies.get()->measure(); //d = 0.5
-  //Updated volume(s): 41
-  //Destroyed volume(s): 42
+  //Updated volume(s): 44
+  //Destroyed volume(s): 45
 
   //3. there's no common body, from body is deleted or kept depending on
   //keep-old flag. 
@@ -739,7 +739,7 @@
   //from_body get deleted
   stat =  gmti->intersect(tool_body, from_bodies, new_bodies, CUBIT_FALSE);
   //"The 1 body did not have common part with the tool_body."
-  //Destroyed volume(s): 41, 43
+  //Destroyed volume(s): 44, 46
 
   bodies.clean_out();
   gti->bodies(bodies);
@@ -763,9 +763,9 @@
   //new_bodies = intersect bodies;bodies = outside bodies; body is dummy 
   stat =  gmti->chop(from_bodies, new_bodies, bodies, body, CUBIT_FALSE);
   d = new_bodies.get()->measure(); //d = 0.5
-  //Created volume(s): 46
-  //Destroyed volume(s): 44
-  //Updated volume(s): 45 
+  //Created volume(s): 49
+  //Destroyed volume(s): 47
+  //Updated volume(s): 48 
 
   bodies.clean_out();
   gti->bodies(bodies);
@@ -787,9 +787,9 @@
   new_bodies.clean_out();
   bodies.clean_out();
   stat =  gmti->chop(from_bodies, new_bodies, bodies, body, CUBIT_FALSE);
-  //Created volume(s): 49
-  //Destroyed volume(s): 48
-  //Updated volume(s): 47
+  //Created volume(s): 52
+  //Destroyed volume(s): 51
+  //Updated volume(s): 50
   d = bodies.get()->measure();//d = 63
   
   bodies.clean_out();
@@ -811,8 +811,8 @@
   from_bodies.append(tool_body);
   new_bodies.clean_out();
   stat = gmti->unite(from_bodies, new_bodies, CUBIT_FALSE);
-  //Updated volume(s): 51
-  //Destroyed volume(s): 50
+  //Updated volume(s): 54
+  //Destroyed volume(s): 53
   d = new_bodies.get()->measure(); //d = 2
   n = new_bodies.get()->num_ref_faces(); //d = 10  
  
@@ -836,8 +836,8 @@
   from_bodies.append(tool_body);
   new_bodies.clean_out();
   stat = gmti->unite(from_bodies, new_bodies, CUBIT_FALSE);
-  //Updated volume(s): 53
-  //Destroyed volume(s): 52
+  //Updated volume(s): 56
+  //Destroyed volume(s): 55
   d = new_bodies.get()->measure(); //d = 64.5
   n = new_bodies.get()->num_ref_faces(); 
   //d = 13. because fusion keeps the imprintings.
@@ -865,8 +865,8 @@
   from_bodies.append(tool_body);
   new_bodies.clean_out();
   stat = gmti->unite(from_bodies, new_bodies, CUBIT_FALSE);
-  //Updated volume(s): 54
-  //Destroyed volume(s): 55
+  //Updated volume(s): 57
+  //Destroyed volume(s): 58
   d = new_bodies.get()->measure(); //d = 518.3627
   n = new_bodies.get()->num_ref_faces(); //n = 5
   //find the top most surface as the opening of the thick body.
@@ -885,7 +885,7 @@
   from_bodies = new_bodies;
   new_bodies.clean_out();
   stat = gmti->hollow(from_bodies, faces_to_remove, new_bodies, -.2);
-  //Updated volume(s): 54
+  //Updated volume(s): 57
   n = new_bodies.get()->num_ref_faces(); //n = 9
   d = new_bodies.get()->measure(); //d = 72.4074
 



More information about the cgma-dev mailing list