[cgma-dev] r5289 - cgm/trunk/test
jiangtao_ma at yahoo.com
jiangtao_ma at yahoo.com
Fri Jan 6 09:26:30 CST 2012
Author: janehu
Date: 2012-01-06 09:26:29 -0600 (Fri, 06 Jan 2012)
New Revision: 5289
Modified:
cgm/trunk/test/makept.cpp
cgm/trunk/test/modify.cpp
Log:
Changes make according to -r5288.
Modified: cgm/trunk/test/makept.cpp
===================================================================
--- cgm/trunk/test/makept.cpp 2012-01-06 15:23:12 UTC (rev 5288)
+++ cgm/trunk/test/makept.cpp 2012-01-06 15:26:29 UTC (rev 5289)
@@ -544,7 +544,11 @@
RefEdge* new_edge_1 = gmti->make_RefEdge(SPLINE_CURVE_TYPE, vertex1,
vertex2, list);
d = new_edge_1->measure();
- assert(fabs(d - 28.5)<0.01);
+ assert(fabs(d - 29.55)<0.01);
+ new_edge_1->closest_point_trimmed(center_pnt1, closest_location);
+ assert(center_pnt1.distance_between(closest_location) < 1.E-6);
+ new_edge_1->closest_point_trimmed(center_pnt2,closest_location);
+ assert(center_pnt2.distance_between(closest_location) < 1.E-6);
//Spline with points and tangents
CubitVector* first_v = new CubitVector(vertex1->coordinates());
Modified: cgm/trunk/test/modify.cpp
===================================================================
--- cgm/trunk/test/modify.cpp 2012-01-06 15:23:12 UTC (rev 5288)
+++ cgm/trunk/test/modify.cpp 2012-01-06 15:26:29 UTC (rev 5289)
@@ -1266,8 +1266,8 @@
bodies.last();
body = bodies.get();
d = body->measure();
- //d = 93.697, no effect of draft angle.
- assert(d - 93.697 < 0.001 && d > 93.697);
+ //d = 92.1335, no effect of draft angle.
+ assert(d - 92.1335 < 0.001 && d > 92.1335);
bodies.clean_out();
gti->bodies(bodies);
More information about the cgma-dev
mailing list