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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Mon Apr 20 11:12:27 CDT 2009


Author: janehu
Date: 2009-04-20 11:12:26 -0500 (Mon, 20 Apr 2009)
New Revision: 2846

Modified:
   cgm/trunk/test/makept.cpp
   cgm/trunk/test/r_w.cpp
Log:
Updated the makept for closest point location.

Modified: cgm/trunk/test/makept.cpp
===================================================================
--- cgm/trunk/test/makept.cpp	2009-04-20 15:49:23 UTC (rev 2845)
+++ cgm/trunk/test/makept.cpp	2009-04-20 16:12:26 UTC (rev 2846)
@@ -597,7 +597,7 @@
   d = new_edge_4->measure();
   assert(fabs(d - 22.21) < 0.01); 
   new_edge_4->closest_point_trimmed(vi, c_point);
-  vii.set(10, 10, 10);
+  vii.set(2.07255, 6.09554, 10);
   assert(vii.distance_between( c_point ) < 0.0001);
 
   RefEdge* new_edge_5 = gmti->make_RefEdge(ELLIPSE_CURVE_TYPE, vertex1,

Modified: cgm/trunk/test/r_w.cpp
===================================================================
--- cgm/trunk/test/r_w.cpp	2009-04-20 15:49:23 UTC (rev 2845)
+++ cgm/trunk/test/r_w.cpp	2009-04-20 16:12:26 UTC (rev 2846)
@@ -48,7 +48,7 @@
 #define SRCPATH STRINGIFY(SRCDIR) "/"
 
 // forward declare some functions used and defined later
-CubitStatus read_geometry(int, char **, bool local = false);
+CubitStatus read_geometry(int, const char **, bool local = false);
 CubitStatus make_Point();
 // macro for printing a separator line
 #define PRINT_SEPARATOR   PRINT_INFO("=======================================\n");
@@ -150,7 +150,7 @@
 
   //Read in the geometry from iges file
   const char *argiges = "ex3.iges";
-  CubitStatus status = read_geometry(1, &argiges, false);
+  CubitStatus status = read_geometry(1, &argiges, true);
   //Constructed 18 Free Curves: 1 to 18
   if (status == CUBIT_FAILURE) exit(1);
 



More information about the cgma-dev mailing list