[cgma-dev] r5329 - cgm/trunk/geom/ACIS_SRC

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Fri Jan 20 14:42:20 CST 2012


Author: janehu
Date: 2012-01-20 14:42:19 -0600 (Fri, 20 Jan 2012)
New Revision: 5329

Modified:
   cgm/trunk/geom/ACIS_SRC/AcisQueryEngine.cpp
   cgm/trunk/geom/ACIS_SRC/AcisQueryEngine.hpp
Log:
Added unit parameter for import/export functions for iges files in OCC engine cgm. Passed cgm/test make check.

Modified: cgm/trunk/geom/ACIS_SRC/AcisQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/ACIS_SRC/AcisQueryEngine.cpp	2012-01-20 20:41:45 UTC (rev 5328)
+++ cgm/trunk/geom/ACIS_SRC/AcisQueryEngine.cpp	2012-01-20 20:42:19 UTC (rev 5329)
@@ -340,6 +340,7 @@
                                                     const char* filename,
                                                     const char* filetype,
                                                     const CubitString &cubit_version,
+                                                    const char* unit,
                                                     const char* logfile_name) 
 {
      // Check to make sure we are exporting valid types
@@ -882,7 +883,8 @@
   CubitBoolean import_surfaces,
   CubitBoolean import_curves,
   CubitBoolean import_vertices,
-  CubitBoolean free_surfaces) 
+  CubitBoolean free_surfaces,
+  const char*  unit) //not used here 
 {
   CpuTimer import_solid_model_timer;
   CubitBoolean step_import = CUBIT_FALSE;

Modified: cgm/trunk/geom/ACIS_SRC/AcisQueryEngine.hpp
===================================================================
--- cgm/trunk/geom/ACIS_SRC/AcisQueryEngine.hpp	2012-01-20 20:41:45 UTC (rev 5328)
+++ cgm/trunk/geom/ACIS_SRC/AcisQueryEngine.hpp	2012-01-20 20:42:19 UTC (rev 5329)
@@ -178,6 +178,7 @@
     const char* file_name,
     const char* file_type,
     const CubitString &cubit_version,
+    const char* unit = NULL,
     const char* logfile_name = NULL ) ;
     //R CubitStatus
     //R- CUBIT_SUCCESS/CUBIT_FAILURE
@@ -232,7 +233,8 @@
     CubitBoolean import_surfaces = CUBIT_TRUE,
     CubitBoolean import_curves = CUBIT_TRUE,
     CubitBoolean import_vertices = CUBIT_TRUE,
-    CubitBoolean free_surfaces = CUBIT_TRUE ) ;
+    CubitBoolean free_surfaces = CUBIT_TRUE , 
+    const char*  unit =  NULL);
     //R CubitStatus
     //R- CUBIT_SUCCESS/CUBIT_FAILURE
     //I file_ptr








More information about the cgma-dev mailing list