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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Thu Mar 12 12:54:50 CDT 2009


Author: janehu
Date: 2009-03-12 12:54:50 -0500 (Thu, 12 Mar 2009)
New Revision: 2705

Modified:
   cgm/trunk/itaps/iGeom_CGMA.cc
Log:
Fixed the problem of itaps test failure in nightly test.

Modified: cgm/trunk/itaps/iGeom_CGMA.cc
===================================================================
--- cgm/trunk/itaps/iGeom_CGMA.cc	2009-03-12 14:00:39 UTC (rev 2704)
+++ cgm/trunk/itaps/iGeom_CGMA.cc	2009-03-12 17:54:50 UTC (rev 2705)
@@ -350,6 +350,8 @@
   }
   
   iBase_ErrorType result;
+  CubitStatus status = CUBIT_SUCCESS;
+
   if (strstr(name, ".cub") != NULL) {
     iGeom_load_cub_geometry(name, err);
     if (iBase_SUCCESS != *err) {
@@ -357,7 +359,10 @@
     }
   }
   else {
-    CubitStatus status = gqt->read_geometry_file(name);
+    if (strstr(name, ".brep") != NULL || strstr(name, ".occ") != NULL)
+      status = gqt->read_geometry_file(name, NULL, "OCC");
+    else
+      status = gqt->read_geometry_file(name);
     if (CUBIT_SUCCESS != status) {
       ERROR(iBase_FILE_NOT_FOUND, "Trouble loading geometry file.");
     }



More information about the cgma-dev mailing list