[MOAB-dev] r5078 - MOAB/trunk/test

iulian at mcs.anl.gov iulian at mcs.anl.gov
Wed Aug 3 11:30:19 CDT 2011


Author: iulian
Date: 2011-08-03 11:30:19 -0500 (Wed, 03 Aug 2011)
New Revision: 5078

Modified:
   MOAB/trunk/test/gttool_test.cpp
Log:
add option to only add geometry sets to a surface mesh file.


Modified: MOAB/trunk/test/gttool_test.cpp
===================================================================
--- MOAB/trunk/test/gttool_test.cpp	2011-08-01 17:39:40 UTC (rev 5077)
+++ MOAB/trunk/test/gttool_test.cpp	2011-08-03 16:30:19 UTC (rev 5078)
@@ -75,6 +75,7 @@
 
   remove_output_file = true;
   bool only_check = false;
+  bool only_geometrize = false;
 
 
   if (argc == 1) {
@@ -90,7 +91,14 @@
     ofile3 = argv[1];// check model only from file
     only_check = true;
     remove_output_file = false; // this is input now, do not delete it
-  } else {
+  } else if (argc == 3) {
+    filename = argv[1];
+    ofile = argv[2];
+    only_geometrize = true;
+    remove_output_file = false;
+  }
+    else
+  {
     std::cerr << "Usage: " << argv[0] << " [surface_mesh] [mbgeo_file] [shellfile] [copyshellfile] " << std::endl;
     return 1;
   }
@@ -113,13 +121,15 @@
 
   //   FBEngine * pFacet = new FBEngine(mb, NULL, true);// smooth facetting, no OBB tree passed
 
-
-
   std::cout << "geometrize test: ";
   ErrorCode rval = geometrize_test( mb, 0); // just pass the root set
   handle_error_code(rval, number_tests_failed, number_tests_successful);
   std::cout << "\n";
 
+  if (only_geometrize)
+  {
+    return number_tests_failed;
+  }
   std::cout << "create shell test: ";
   rval = create_shell_test( mb);
   handle_error_code(rval, number_tests_failed, number_tests_successful);







More information about the moab-dev mailing list