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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Wed Dec 21 11:48:24 CST 2011


Author: janehu
Date: 2011-12-21 11:48:23 -0600 (Wed, 21 Dec 2011)
New Revision: 5275

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
   cgm/trunk/geom/OCC/OCCModifyEngine.hpp
Log:
Added Boyd's functions to OCC.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2011-12-21 17:46:53 UTC (rev 5274)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2011-12-21 17:48:23 UTC (rev 5275)
@@ -6685,7 +6685,7 @@
 Curve* OCCModifyEngine::create_arc_three( Point* pt1, 
                                           Point* pt2,
                                           Point* pt3, 
-                                          bool full )
+                                          bool full )const
 { 
   if(!full)
   {
@@ -6722,7 +6722,7 @@
 Curve* OCCModifyEngine::create_arc_three( Curve* curve1, 
                                           Curve* curve2,
                                           Curve* curve3, 
-                                          bool full  )
+                                          bool full  )const
 { 
   OCCCurve* occ_crv1 = CAST_TO(curve1, OCCCurve);
   OCCCurve* occ_crv2 = CAST_TO(curve2, OCCCurve);
@@ -6886,7 +6886,7 @@
                                                 Point* pt3,
                                                 const CubitVector& normal, 
                                                 double radius,
-                                                bool full ) 
+                                                bool full ) const
 { 
   CubitVector vec1 = pt1->coordinates(); // Center of arc
   CubitVector vec2 = pt2->coordinates(); // Position on arc
@@ -9695,4 +9695,231 @@
   }
 }
 
+//Following codes are OCC engine only, implemented by Boyd Tidwell
+CubitStatus OCCModifyEngine::create_rectangle_surface( double width,
+            double height,
+            CubitVector plane,
+            BodySM *&sheet_body) const
+{
+  //create points at the 4 corners
+  CubitVector pos1( width*0.5, height*0.5, 0 );
+  CubitVector pos2( -width*0.5, height*0.5, 0 );
+  CubitVector pos3( -width*0.5, -height*0.5, 0 );
+  CubitVector pos4( width*0.5, -height*0.5, 0 );
+
+  DLIList<CubitVector*> vec_list(4);
+  vec_list.append( &pos1 );
+  vec_list.append( &pos2 );
+  vec_list.append( &pos3 );


More information about the cgma-dev mailing list