[cgma-dev] r4739 - cgm/branches/merge-cubit12/geom/OCC

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Thu Apr 14 12:13:05 CDT 2011


Author: janehu
Date: 2011-04-14 12:13:03 -0500 (Thu, 14 Apr 2011)
New Revision: 4739

Modified:
   cgm/branches/merge-cubit12/geom/OCC/OCCModifyEngine.cpp
Log:
Make the arguments the same meaning as in ACIS.

Modified: cgm/branches/merge-cubit12/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/branches/merge-cubit12/geom/OCC/OCCModifyEngine.cpp	2011-04-13 18:52:36 UTC (rev 4738)
+++ cgm/branches/merge-cubit12/geom/OCC/OCCModifyEngine.cpp	2011-04-14 17:13:03 UTC (rev 4739)
@@ -1456,6 +1456,7 @@
 // Function   : brick
 // Member Type: PUBLIC
 // Description: create an OCC brick given center axes and extension
+//              extension is equvlent to (wid/2, dep/2, hi/2)
 // Author     : Jane Hu
 // Date       : 03/08
 //===============================================================================
@@ -1468,8 +1469,8 @@
   gp_Dir main_dir(axes[2].x(), axes[2].y(), axes[2].z());
   gp_Dir x_dir(axes[0].x(), axes[0].y(), axes[0].z());
   gp_Ax2 Axis(left_point, main_dir, x_dir);
-  TopoDS_Solid S = BRepPrimAPI_MakeBox( Axis, extension.x(), extension.y(),
-					extension.z());
+  TopoDS_Solid S = BRepPrimAPI_MakeBox( Axis, extension.x()*2, extension.y()*2,
+					extension.z()*2);
 
   Lump* lump =  OCCQueryEngine::instance()->populate_topology_bridge(S,
 								CUBIT_TRUE);






























More information about the cgma-dev mailing list