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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Wed Aug 18 11:59:27 CDT 2010


Author: janehu
Date: 2010-08-18 11:59:26 -0500 (Wed, 18 Aug 2010)
New Revision: 4095

Modified:
   cgm/trunk/geom/OCC/OCCBody.hpp
   cgm/trunk/geom/OCC/OCCDrawTool.cpp
   cgm/trunk/geom/OCC/OCCLump.cpp
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
   cgm/trunk/geom/OCC/OCCQueryEngine.hpp
   cgm/trunk/geom/OCC/OCCShell.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.hpp
===================================================================
--- cgm/trunk/geom/OCC/OCCBody.hpp	2010-08-18 14:11:47 UTC (rev 4094)
+++ cgm/trunk/geom/OCC/OCCBody.hpp	2010-08-18 16:59:26 UTC (rev 4095)
@@ -24,6 +24,7 @@
 #include "OCCAttribSet.hpp"
 #include "CubitBox.hpp"
 
+#include <TopoDS_CompSolid.hxx>
 // ********** END CUBIT INCLUDES           **********
 
 // ********** BEGIN FORWARD DECLARATIONS   **********
@@ -41,15 +42,13 @@
 class BRepAlgoAPI_BooleanOperation;
 class BRepBuilderAPI_MakeShape;
 class LocOpe_SplitShape;
-class TopoDS_Compound;
 // ********** END FORWARD DECLARATIONS     **********
 
 class OCCBody : public BodySM
 {
 public:
   
-  // Currently, the compound should only consists solids.
-  OCCBody(TopoDS_Compound *theShape, CubitBoolean isSheetBody = CUBIT_FALSE, 
+  OCCBody(TopoDS_CompSolid *theShape, CubitBoolean isSheetBody = CUBIT_FALSE, 
           OCCSurface* surface = NULL, OCCShell* shell = NULL);
 
   OCCBody(DLIList<Lump*>& my_lumps);
@@ -69,8 +68,8 @@
     //- This function returns a pointer to the geometric modeling engine
     //- associated with the object.
   
-  TopoDS_Compound *get_TopoDS_Shape() {return myTopoDSShape; }
-  void set_TopoDS_Shape( TopoDS_Compound theshape);
+  TopoDS_CompSolid *get_TopoDS_Shape() {return myTopoDSShape; }
+  void set_TopoDS_Shape( TopoDS_CompSolid theshape);
 
   virtual CubitStatus get_transforms( CubitTransformMatrix &tfm );
   //R CubitStatus
@@ -186,7 +185,7 @@
 
   virtual CubitBoolean is_sheet_body(){return IsSheetBody;}
 
-  TopoDS_Compound* make_Compound(DLIList<Lump*>& my_lumps);
+  TopoDS_CompSolid* make_CompSolid(DLIList<Lump*>& my_lumps);
 protected: 
 private:
 
@@ -194,7 +193,7 @@
     //List of the attached lumps for the traversal functions.


More information about the cgma-dev mailing list