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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Fri Mar 27 11:48:08 CDT 2009


Author: janehu
Date: 2009-03-27 11:48:08 -0500 (Fri, 27 Mar 2009)
New Revision: 2765

Modified:
   cgm/trunk/test/modify.cpp
Log:
Added a check on chamfer with different cutting distance.

Modified: cgm/trunk/test/modify.cpp
===================================================================
--- cgm/trunk/test/modify.cpp	2009-03-27 16:37:36 UTC (rev 2764)
+++ cgm/trunk/test/modify.cpp	2009-03-27 16:48:08 UTC (rev 2765)
@@ -151,9 +151,14 @@
   DLIList<RefFace*> ref_faces;
   body->ref_faces(ref_faces);
   RefFace* face = gmti->make_RefFace(ref_faces.get());
+  RefFace* face2 = gmti->make_RefFace(ref_faces.get());
   Body* sheet_body = face->body();
+  Body* sheet_body2 = face2->body();
   away *= 5;
   gti->translate(sheet_body, away); 
+  away /= 2;
+  gti->translate(sheet_body2, away);
+
   ref_vertices2.clean_out();
   ref_vertices.clean_out();
   face->ref_vertices(ref_vertices2);
@@ -173,7 +178,22 @@
   isize=ref_edges_check.size();
   //isize = 8
 
+  ref_vertices.clean_out();
+  face2->ref_vertices(ref_vertices);
+  ref_vertices.pop();
+  ref_vertices.pop();
+  ref_vertices.pop();
+  ref_edges_check.clean_out();
+  ref_vertices.get()->ref_edges(ref_edges_check);
   new_bodies.clean_out();
+  status = gmti->tweak_chamfer(ref_vertices, 1, new_bodies,ref_edges_check.pop(), 0.5, ref_edges_check.pop());
+ 
+  ref_edges_check.clean_out();
+  new_bodies.get()->ref_edges(ref_edges_check);
+  isize=ref_edges_check.size();
+  //isize = 5
+
+  new_bodies.clean_out();
   gmti->tweak_fillet(ref_edges, 1, new_bodies, CUBIT_FALSE, CUBIT_FALSE);
 
   ref_edges.clean_out();



More information about the cgma-dev mailing list