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

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Fri Jan 22 09:17:29 CST 2010


Author: kraftche
Date: 2010-01-22 09:17:29 -0600 (Fri, 22 Jan 2010)
New Revision: 3462

Modified:
   cgm/trunk/test/hollow_acis.cpp
Log:
clean up CGM initialization and remove a lot of unnecessary #includes

Modified: cgm/trunk/test/hollow_acis.cpp
===================================================================
--- cgm/trunk/test/hollow_acis.cpp	2010-01-22 01:24:38 UTC (rev 3461)
+++ cgm/trunk/test/hollow_acis.cpp	2010-01-22 15:17:29 UTC (rev 3462)
@@ -10,27 +10,14 @@
  *
  */
 
-#include "CpuTimer.hpp"
 #include "GeometryModifyTool.hpp"
 #include "GeometryQueryTool.hpp"
-#include "AcisQueryEngine.hpp"
-#include "MergeTool.hpp"
-#include "CubitUtil.hpp"
-#include "CubitMessage.hpp"
-#include "CubitDefines.h"
-#include "RefEntity.hpp"
 #include "Body.hpp"
 #include "RefVolume.hpp"
 #include "RefFace.hpp"
 #include "RefEdge.hpp"
 #include "RefVertex.hpp"
-#include "CubitObserver.hpp"
-#include "CastTo.hpp"
-#include "AcisQueryEngine.hpp"
-#include "AcisModifyEngine.hpp"
-#include "AppUtil.hpp"
-#include "RefEntityFactory.hpp"
-#include "RefEdge.hpp"
+#include "InitCGMA.hpp"
 
 #define STRINGIFY(S) XSTRINGIFY(S)
 #define XSTRINGIFY(S) #S
@@ -48,25 +35,10 @@
 // main program - initialize, then send to proper function
 int main (int argc, char **argv)
 {
+    // Start up CGM
+  CubitStatus status = InitCGMA::initialize_cgma("ACIS");
+  if (CUBIT_SUCCESS != status) return 1;
 
-  CubitObserver::init_static_observers();
-    // Initialize the GeometryTool
-  
-  CGMApp::instance()->startup( argc, argv );
-  GeometryQueryTool::instance();
-  AcisQueryEngine::instance();
-  AcisModifyEngine::instance();
-
-    // If there aren't any file arguments, print usage and exit
-  //if (argc == 1) {
-  //  PRINT_INFO("Usage: mergechk <geom_file> [<geom_file> ...]\n");
-  //  exit(0);
-  //}
-  
-  CubitStatus status = CUBIT_SUCCESS;
-
-
-
   //Do hollow operation to make thick body.
   status = hollow();
   if (status == CUBIT_FAILURE) 



More information about the cgma-dev mailing list