[cgma-dev] r2701 - cgm/trunk/geom
jiangtao_ma at yahoo.com
jiangtao_ma at yahoo.com
Wed Mar 11 13:58:14 CDT 2009
Author: janehu
Date: 2009-03-11 13:58:14 -0500 (Wed, 11 Mar 2009)
New Revision: 2701
Modified:
cgm/trunk/geom/GeometryQueryTool.cpp
Log:
Loop through all engines to try to import geometry before it fails.
Modified: cgm/trunk/geom/GeometryQueryTool.cpp
===================================================================
--- cgm/trunk/geom/GeometryQueryTool.cpp 2009-03-11 18:47:15 UTC (rev 2700)
+++ cgm/trunk/geom/GeometryQueryTool.cpp 2009-03-11 18:58:14 UTC (rev 2701)
@@ -616,11 +616,17 @@
gqeList.reset();
DLIList<TopologyBridge*> bridge_list;
- CubitStatus status = gqeList.get()->import_solid_model( file_name,
+ CubitStatus status;
+ for(int i = 0; i < gqeList.size(); i++)
+ {
+ status = gqeList.get_and_step()->import_solid_model( file_name,
file_type, bridge_list, CUBIT_TRUE,logfile_name, heal_step, import_bodies,
import_surfaces, import_curves, import_vertices, free_surfaces );
- if( bridge_list.size() == 0 )
+ if( bridge_list.size() > 0 )
+ break;
+ }
+ if(bridge_list.size() == 0)
return status;
for (IGESet::iterator itor = igeSet.begin(); itor != igeSet.end(); ++itor)
More information about the cgma-dev
mailing list