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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Wed Aug 11 09:48:17 CDT 2010


Author: janehu
Date: 2010-08-11 09:48:17 -0500 (Wed, 11 Aug 2010)
New Revision: 4077

Modified:
   cgm/trunk/test/modify.cpp
Log:
Added one test for sweep with draft angle option.

Modified: cgm/trunk/test/modify.cpp
===================================================================
--- cgm/trunk/test/modify.cpp	2010-08-10 18:06:37 UTC (rev 4076)
+++ cgm/trunk/test/modify.cpp	2010-08-11 14:48:17 UTC (rev 4077)
@@ -1020,6 +1020,7 @@
   DLIList<RefEntity*> refentities;
   refentities.append(sweep_face);
   RefFace* draft_face = gmti->make_RefFace(sweep_face);
+  RefFace* draft_face2 = gmti->make_RefFace(sweep_face);
   RefFace* perp_face = gmti->make_RefFace(sweep_face);
   RefFace* rotate_face = gmti->make_RefFace(sweep_face);
 
@@ -1037,6 +1038,16 @@
   //d = 66.3676  theoretical calculation is 66.7833, error 0.62%
   assert(d - 66.3676 < 0.0001 && d > 66.3676);
 
+  v_move8ii.z(-10);
+  refentities.clean_out();
+  refentities.append(draft_face2);
+  gmti->sweep_translational(refentities, v_move8ii, 0.087, 1, CUBIT_FALSE, CUBIT_FALSE);
+  body = CAST_TO(refentities.get(), Body);
+  d = body->measure();
+  //d = 66.3676  theoretical calculation is 66.7833, error 0.62%
+  assert(d - 66.3676 < 0.0001 && d > 66.3676);
+
+  v_move8ii.z(10);
   DLIList<RefEdge*> edges;
   body->ref_edges(edges);
   refentities.clean_out();
























More information about the cgma-dev mailing list