[cgma-dev] r5340 - cgm/trunk/geom/OCC

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Mon Jan 23 12:35:17 CST 2012


Author: janehu
Date: 2012-01-23 12:35:17 -0600 (Mon, 23 Jan 2012)
New Revision: 5340

Modified:
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
   cgm/trunk/geom/OCC/OCCQueryEngine.hpp
Log:
Change the code back to be compatible to Cubit interface and keep CGM a unitless system.

Modified: cgm/trunk/geom/OCC/OCCQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2012-01-23 18:15:39 UTC (rev 5339)
+++ cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2012-01-23 18:35:17 UTC (rev 5340)
@@ -850,7 +850,6 @@
 						const char* file_name,
 						const char* file_type,
 						const CubitString &,
-                                                const char* unit,
 						const char*)
 {
   if( strcmp( file_type, "OCC" ) != 0 && 
@@ -861,14 +860,16 @@
       return CUBIT_FAILURE;
     }
  
+/*
   char* name = "write.iges.unit";
   Standard_CString orig_unit;
+  char* unit = "M";
   if(strcmp( file_type, "IGES") == 0 && unit != NULL)
   {
     orig_unit = Interface_Static::CVal(name);
     Interface_Static::SetCVal (name, unit); 
   }
- 
+*/
   DLIList<OCCBody*>    OCC_bodies;
   DLIList<OCCSurface*> OCC_surfaces;
   DLIList<OCCCurve*>   OCC_curves;
@@ -931,10 +932,11 @@
   status = write_topology( file_name, file_type,
                            OCC_bodies, OCC_surfaces,
                            OCC_curves, OCC_points );
+/*
   //set the unit back.
   if(strcmp( file_type, "IGES") == 0 && unit != NULL) 
     Interface_Static::SetCVal (name,orig_unit);
-
+*/
   if( status == CUBIT_FAILURE ) return CUBIT_FAILURE;
 
   if( free_body_count || free_surface_count || 
@@ -1477,8 +1479,7 @@
 					       CubitBoolean import_surfaces,
 					       CubitBoolean import_curves,
 					       CubitBoolean import_vertices,
-					       CubitBoolean free_surfaces,
-                                               const char*  unit )
+					       CubitBoolean free_surfaces)
 {


More information about the cgma-dev mailing list