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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Thu Aug 11 09:23:35 CDT 2011


Author: janehu
Date: 2011-08-11 09:23:35 -0500 (Thu, 11 Aug 2011)
New Revision: 5090

Modified:
   cgm/trunk/test/makept.cpp
   cgm/trunk/test/modify.cpp
Log:
Changes coresponding to r5088. Passed all tests in cgm.

Modified: cgm/trunk/test/makept.cpp
===================================================================
--- cgm/trunk/test/makept.cpp	2011-08-11 14:22:46 UTC (rev 5089)
+++ cgm/trunk/test/makept.cpp	2011-08-11 14:23:35 UTC (rev 5090)
@@ -524,7 +524,7 @@
   RefEdge* edge1 = ref_edges1->pop();
   RefEdge* edge2 = ref_edges1->pop();
   double angle = edge2->angle_between(edge1, ref_face);
-  assert(fabs(angle - 4.712) < 0.001);
+  assert(fabs(angle - 1.5707) < 0.001);
 
   //test for curve
   CubitVector c_point, tangent, center;

Modified: cgm/trunk/test/modify.cpp
===================================================================
--- cgm/trunk/test/modify.cpp	2011-08-11 14:22:46 UTC (rev 5089)
+++ cgm/trunk/test/modify.cpp	2011-08-11 14:23:35 UTC (rev 5090)
@@ -139,7 +139,8 @@
   assert(fabs(volume-1000) <= 0.00001);
   n = all_bodies.get()->num_ref_faces();
   assert(n == 6);
-
+  body = all_bodies.get();
+  
   Body* body2 = gmti->brick(10, 10, 10);
   CubitVector scale(1, 2, 5);
   gmti->scale(body2, scale);
@@ -188,7 +189,7 @@
   away *= 3;
   gti->translate(tweak_body, away);
   away /= 3;
-  CubitVector delta(0,-1,0);
+  CubitVector delta(-1, 0, 0);
   DLIList<Body*> tweak_bodies;
   gmti->tweak_move( tweak_edges, delta, tweak_bodies, CUBIT_FALSE,
                     CUBIT_FALSE);
















More information about the cgma-dev mailing list