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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Wed Feb 16 12:21:16 CST 2011


Author: janehu
Date: 2011-02-16 12:21:16 -0600 (Wed, 16 Feb 2011)
New Revision: 4504

Modified:
   cgm/trunk/geom/OCC/OCCSurface.cpp
   cgm/trunk/geom/OCC/OCCSurface.hpp
Log:
Added get_hardpoints function for OCCSurface.

Modified: cgm/trunk/geom/OCC/OCCSurface.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCSurface.cpp	2011-02-16 18:17:46 UTC (rev 4503)
+++ cgm/trunk/geom/OCC/OCCSurface.cpp	2011-02-16 18:21:16 UTC (rev 4504)
@@ -816,6 +816,7 @@
     OCCCurve* curve = curves.get_and_step();
     curve->get_points(points);
   }
+  points += get_hardpoints();
   return points.size();
 }
 

Modified: cgm/trunk/geom/OCC/OCCSurface.hpp
===================================================================
--- cgm/trunk/geom/OCC/OCCSurface.hpp	2011-02-16 18:17:46 UTC (rev 4503)
+++ cgm/trunk/geom/OCC/OCCSurface.hpp	2011-02-16 18:21:16 UTC (rev 4504)
@@ -75,6 +75,7 @@
 
   void add_hardpoint(OCCPoint* HardPoint){myHardPoints.append(HardPoint);}
   void remove_hardpoint(OCCPoint* HardPoint){myHardPoints.remove(HardPoint);}
+  DLIList<OCCPoint*> get_hardpoints() {return myHardPoints;};
 
   virtual void append_simple_attribute_virt(CubitSimpleAttrib*);
     //R void




























More information about the cgma-dev mailing list