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

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


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

Modified:
   cgm/trunk/test/operation.cpp
Log:
Make the area check into the test.

Modified: cgm/trunk/test/operation.cpp
===================================================================
--- cgm/trunk/test/operation.cpp	2010-08-11 14:48:17 UTC (rev 4077)
+++ cgm/trunk/test/operation.cpp	2010-08-11 17:17:43 UTC (rev 4078)
@@ -135,7 +135,7 @@
     Body *midplane_body;
     midplane_body = gti->make_Body(midplane_bodysm);
     double d = midplane_body->measure();
-    //d = 100
+    assert( d > 99.9999 && d < 100.00001);
   }
 
   v1.x(2);
@@ -149,7 +149,7 @@
     Body *midplane_body;
     midplane_body = gti->make_Body(midplane_bodysm);
     double d = midplane_body->measure();
-    //d = 70
+    assert( d > 69.9999 && d < 70.00001);
   }
 
   status = gmti->webcut_with_plane(from_bodies, v1, v2, v3, new_bodies, CUBIT_TRUE);































More information about the cgma-dev mailing list