[cgma-dev] r2672 - cgm/trunk/test
jiangtao_ma at yahoo.com
jiangtao_ma at yahoo.com
Mon Mar 2 13:45:22 CST 2009
Author: janehu
Date: 2009-03-02 13:45:22 -0600 (Mon, 02 Mar 2009)
New Revision: 2672
Modified:
cgm/trunk/test/makept.cpp
Log:
Passed test on pyramid making function.
Modified: cgm/trunk/test/makept.cpp
===================================================================
--- cgm/trunk/test/makept.cpp 2009-03-02 19:44:44 UTC (rev 2671)
+++ cgm/trunk/test/makept.cpp 2009-03-02 19:45:22 UTC (rev 2672)
@@ -134,6 +134,24 @@
gti->bodies(bodies);
gti->delete_Body(bodies);
+ //test for creating pyramids
+ Body* pyramid1 = gmti->pyramid(10, 7, 5, 2, 2);
+ Body* pyramid2 = gmti->pyramid(10, 7, 5, 5, 2);
+ Body* pyramid3 = gmti->pyramid(10, 8, 5, 2, 2);
+ Body* pyramid4 = gmti->pyramid(10, 8, 5, 5, 2);
+ Body* pyramid5 = gmti->pyramid(10, 8, 5, 2, 0);
+ Body* pyramid6 = gmti->pyramid(10, 8, 5, 5, 0);
+ ref_entity_list.clean_out();
+ num_ents_exported=0;
+ filename = "pyramid.brep";
+
+ rsl = gti->export_solid_model(ref_entity_list, filename, filetype,
+ num_ents_exported, cubit_version);
+
+ bodies.clean_out();
+ gti->bodies(bodies);
+ gti->delete_Body(bodies);
+
//Create sphere
RefEntity* sphereEnt= GeometryModifyTool::instance()->sphere(1.5);
sphereEnt->entity_name("sphere");
More information about the cgma-dev
mailing list