[cgma-dev] r5330 - cgm/trunk/geom/facet

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


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

Modified:
   cgm/trunk/geom/facet/FacetQueryEngine.cpp
   cgm/trunk/geom/facet/FacetQueryEngine.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/facet/FacetQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/facet/FacetQueryEngine.cpp	2012-01-20 20:42:19 UTC (rev 5329)
+++ cgm/trunk/geom/facet/FacetQueryEngine.cpp	2012-01-20 20:42:35 UTC (rev 5330)
@@ -702,6 +702,7 @@
                                                      const char* file_name,
                                                      const char* file_type,
                                                      const CubitString &,
+                                                     const char*,
                                                      const char*)
 {
   if( strcmp( file_type, "FACET" ) )
@@ -1751,7 +1752,8 @@
                                                  CubitBoolean import_surfaces,
                                                  CubitBoolean import_curves,
                                                  CubitBoolean import_vertices,
-                                                 CubitBoolean free_surfaces)
+                                                 CubitBoolean free_surfaces,
+                                                 const char* unit) //not used
 {
   errno = 0;
   FILE *file_ptr = fopen(file_name, "rb");

Modified: cgm/trunk/geom/facet/FacetQueryEngine.hpp
===================================================================
--- cgm/trunk/geom/facet/FacetQueryEngine.hpp	2012-01-20 20:42:19 UTC (rev 5329)
+++ cgm/trunk/geom/facet/FacetQueryEngine.hpp	2012-01-20 20:42:35 UTC (rev 5330)
@@ -249,6 +249,7 @@
                                           const char* file_name,
                                           const char* file_type,
                                           const CubitString &cubit_version,
+                                          const char* unit = NULL,
                                           const char* logfile_name = NULL );
 
   virtual CubitStatus export_solid_model( DLIList<TopologyBridge*>& bridge_list,
@@ -277,7 +278,9 @@
                                          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
+ );
 
  virtual CubitStatus import_solid_model(DLIList<TopologyBridge*> &imported_entities,
 					const char* pBuffer,







More information about the cgma-dev mailing list