[cgma-dev] r4920 - cgm/trunk/itaps

wilsonp at engr.wisc.edu wilsonp at engr.wisc.edu
Thu Jun 2 02:34:07 CDT 2011


Author: wilsonp
Date: 2011-06-02 02:34:07 -0500 (Thu, 02 Jun 2011)
New Revision: 4920

Modified:
   cgm/trunk/itaps/testgeom.cc
Log:
Added rudimentary test for iGeom_getFacets(...)

Modified: cgm/trunk/itaps/testgeom.cc
===================================================================
--- cgm/trunk/itaps/testgeom.cc	2011-06-02 07:14:03 UTC (rev 4919)
+++ cgm/trunk/itaps/testgeom.cc	2011-06-02 07:34:07 UTC (rev 4920)
@@ -108,6 +108,7 @@
 bool primitives_test(iGeom_Instance geom);
 bool transforms_test(iGeom_Instance geom);
 bool booleans_test(iGeom_Instance geom);
+bool faceting_test(iGeom_Instance geom);
 bool shutdown_test(iGeom_Instance geom, std::string &engine_opt);
 bool save_entset_test(iGeom_Instance geom);
 bool mesh_size_test(iGeom_Instance geom);
@@ -261,6 +262,15 @@
   std::cout << "\n";
 #endif  
   
+    // facet tests
+  std::cout << "   faceting: ";
+  result = faceting_test(geom);
+  handle_error_code(result, number_tests_failed,
+                    number_tests_not_implemented,
+                    number_tests_successful);
+  number_tests++;
+  std::cout << "\n";
+
     // shutdown test
   std::cout << "   shutdown: ";
   result = shutdown_test(geom, engine_opt);
@@ -283,6 +293,7 @@
   return number_tests_failed;
 }
 
+
 /*!
   @test 
   Load Mesh
@@ -1241,8 +1252,7 @@
 bool mesh_size_test(iGeom_Instance geom)
 {
   const char* filename = STRINGIFY(SRCDIR) "/size.sat";
-  int err, junk1, junk2;
-  bool result = true;
+  int err;
   
   iGeom_deleteAll( geom, &err ); CHECK("");
   iGeom_load( geom, filename, 0, &err, strlen(filename), 0 );
@@ -1337,6 +1347,71 @@
   return true;
 }
 
+bool faceting_test(iGeom_Instance geom)


More information about the cgma-dev mailing list