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

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Tue May 20 10:21:11 CDT 2008


Author: kraftche
Date: 2008-05-20 10:21:11 -0500 (Tue, 20 May 2008)
New Revision: 1829

Modified:
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
Log:
Do not change global state based on transient argument to 
import_solid_model: substantially reduces the noise when running
the 'modify' test.


Modified: cgm/trunk/geom/OCC/OCCQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2008-05-20 15:13:58 UTC (rev 1828)
+++ cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2008-05-20 15:21:11 UTC (rev 1829)
@@ -1045,9 +1045,12 @@
   BRep_Builder aBuilder;
   Standard_Boolean result = BRepTools::Read(*aShape, (char*) file_name, aBuilder);
   if (result==0) return CUBIT_FAILURE;
+  
+  CubitBoolean prev_global_val = PRINT_RESULT;
   PRINT_RESULT = print_results;
   
   imported_entities = populate_topology_bridge(*aShape);
+  PRINT_RESULT = prev_global_val;
   return CUBIT_SUCCESS;
 }
 




More information about the cgma-dev mailing list