[brlcad-commits] CVS: brlcad/src/external/Cubit g-sat.cxx, 1.11, 1.12
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: Sean M. <br...@us...> - 2007-10-16 17:04:35
|
Update of /cvsroot/brlcad/brlcad/src/external/Cubit In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23157 Modified Files: g-sat.cxx Log Message: update to the latest API changes where create_body_from_surfs() seems to have chnaged to create_solid_bodies_from_surfs() in the GeometryModifyTool class. looks like it just changed to return a list of bodies instead of one body, so we iterate over the bodies. this is entirely untested, but seems right according to the docs at https://svn.mcs.anl.gov/repos/ITAPS/cgm/trunk/geom/ Index: g-sat.cxx =================================================================== RCS file: /cvsroot/brlcad/brlcad/src/external/Cubit/g-sat.cxx,v retrieving revision 1.11 retrieving revision 1.12 diff -w -u -r1.11 -r1.12 --- g-sat.cxx 15 Sep 2007 16:23:05 -0000 1.11 +++ g-sat.cxx 16 Oct 2007 17:04:36 -0000 1.12 @@ -1241,11 +1241,16 @@ } } - Body *BotBody, *RegBotBody; + DLIList <Body*> BodyList; CubitStatus status; - status = gmt->create_body_from_surfs(FaceList, BotBody); + status = gmt->create_solid_bodies_from_surfs(FaceList, BodyList); + // status = gmt->create_body_from_surfs(FaceList, BotBody); + + Body *BotBody, *RegBotBody; + for (int i=0; i < BodyList.size(); i++) { + BotBody = BodyList[i]; if (status != CUBIT_FAILURE) { cout << "make_bot made a Body!" << endl; @@ -1266,6 +1271,7 @@ status = gqt->translate(gqt->get_last_body(), bbox_cp); } + } FaceList.clean_out(); |