Author: janehu Date: 2010-08-18 12:02:14 -0500 (Wed, 18 Aug 2010) New Revision: 4096 Modified: cgm/trunk/geom/OCC/OCCBody.cpp cgm/trunk/geom/OCC/OCCSurface.cpp Log: Back up most files into previous version. These changes are a trial to fix unite problem in other mcnp2cad testing, but seems not good yet for a fix. Modified: cgm/trunk/geom/OCC/OCCBody.cpp =================================================================== --- cgm/trunk/geom/OCC/OCCBody.cpp 2010-08-18 16:59:26 UTC (rev 4095) +++ cgm/trunk/geom/OCC/OCCBody.cpp 2010-08-18 17:02:14 UTC (rev 4096) @@ -52,14 +52,13 @@ #include "BRepGProp.hxx" #include "Standard_Boolean.hxx" #include "LocOpe_SplitShape.hxx" -#include "TopoDS_Compound.hxx" //------------------------------------------------------------------------- // Purpose : A constructor with a list of lumps that are attached. // // Special Notes : // //------------------------------------------------------------------------- -OCCBody::OCCBody(TopoDS_Compound *theShape, CubitBoolean isSheetBody, +OCCBody::OCCBody(TopoDS_CompSolid *theShape, CubitBoolean isSheetBody, OCCSurface* surface, OCCShell* shell) { myTopoDSShape = theShape; @@ -83,45 +82,45 @@ myLumps += my_lumps; } -void OCCBody::set_TopoDS_Shape( TopoDS_Compound theshape) +void OCCBody::set_TopoDS_Shape( TopoDS_CompSolid theshape) { if(theshape.IsEqual(*myTopoDSShape)) return; - TopoDS_Compound * the_comp = new TopoDS_Compound(theshape); + TopoDS_CompSolid * the_comp = new TopoDS_CompSolid(theshape); if(myTopoDSShape) - delete (TopoDS_Compound*)myTopoDSShape; + delete (TopoDS_CompSolid*)myTopoDSShape; myTopoDSShape = the_comp; } OCCBody::OCCBody(DLIList<Lump*>& my_lumps) { myLumps += my_lumps; - TopoDS_Compound* new_top = make_Compound(my_lumps); + TopoDS_CompSolid* new_top = make_CompSolid(my_lumps); myTopoDSShape = new_top; IsSheetBody = CUBIT_FALSE; myShell = NULL; update_bounding_box(); } -TopoDS_Compound* OCCBody::make_Compound(DLIList<Lump*>& my_lumps) +TopoDS_CompSolid* OCCBody::make_CompSolid(DLIList<Lump*>& my_lumps)
participants (1)
-
jiangtao_ma@yahoo.com