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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Thu Jan 12 11:49:40 CST 2012


Author: janehu
Date: 2012-01-12 11:49:38 -0600 (Thu, 12 Jan 2012)
New Revision: 5314

Modified:
   cgm/trunk/test/makept.cpp
   cgm/trunk/test/modify.cpp
Log:
Changes made for r5313.

Modified: cgm/trunk/test/makept.cpp
===================================================================
--- cgm/trunk/test/makept.cpp	2012-01-12 17:49:00 UTC (rev 5313)
+++ cgm/trunk/test/makept.cpp	2012-01-12 17:49:38 UTC (rev 5314)
@@ -537,10 +537,12 @@
   CubitVector center_pnt1(5,8,10);
   CubitVector center_pnt2(1,2,10);
   CubitVector center_pnt3(-2,-3.5,10);
+  list.append(&vector1);
   list.append(&center_pnt1);
   list.append(&center_pnt2);
   list.append(&center_pnt);
   list.append(&center_pnt3);
+  list.append(&vector2);
   RefEdge* new_edge_1 = gmti->make_RefEdge(SPLINE_CURVE_TYPE, vertex1,
                                           vertex2, list);
   d = new_edge_1->measure();
@@ -551,11 +553,6 @@
   assert(center_pnt2.distance_between(closest_location) < 1.E-6); 
 
   //Spline with points and tangents
-  CubitVector* first_v = new CubitVector(vertex1->coordinates());
-  CubitVector* last_v = new CubitVector(vertex2->coordinates());
-  list.insert_first(first_v);
-  list.append(last_v);
-
   DLIList<CubitVector*> tangents;
   for (int i = 0; i< 6; i++)
     tangents.append(NULL);

Modified: cgm/trunk/test/modify.cpp
===================================================================
--- cgm/trunk/test/modify.cpp	2012-01-12 17:49:00 UTC (rev 5313)
+++ cgm/trunk/test/modify.cpp	2012-01-12 17:49:38 UTC (rev 5314)
@@ -1251,11 +1251,14 @@
   CubitVector pt7(0,1,-15);
   RefVertex* vt5 = gmti->make_RefVertex(pt7);
   DLIList<CubitVector*> vector_list;
+  vector_list.append(&pt1);
   vector_list.append(&pt5);
-  
+  vector_list.append(&pt4); 
   RefEdge* edge4 = gmti->make_RefEdge( SPLINE_CURVE_TYPE, vt1, vt4, vector_list);
   vector_list.clean_out();
+  vector_list.append(&pt4);
   vector_list.append(&pt6);
+  vector_list.append(&pt7);
   RefEdge* edge5 = gmti->make_RefEdge( SPLINE_CURVE_TYPE, vt4, vt5, vector_list);  
   edges.clean_out();
   edges.append(edge4);



More information about the cgma-dev mailing list