[cgma-dev] r4502 - cgm/trunk/geom/OCC
jiangtao_ma at yahoo.com
jiangtao_ma at yahoo.com
Wed Feb 16 12:15:03 CST 2011
Author: janehu
Date: 2011-02-16 12:15:03 -0600 (Wed, 16 Feb 2011)
New Revision: 4502
Modified:
cgm/trunk/geom/OCC/OCCSurface.cpp
cgm/trunk/geom/OCC/OCCSurface.hpp
Log:
Added get_points function for OCCSurface.
Modified: cgm/trunk/geom/OCC/OCCSurface.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCSurface.cpp 2011-02-16 16:10:48 UTC (rev 4501)
+++ cgm/trunk/geom/OCC/OCCSurface.cpp 2011-02-16 18:15:03 UTC (rev 4502)
@@ -808,6 +808,17 @@
return result_list.size();
}
+int OCCSurface::get_points(DLIList<OCCPoint*>& points)
+{
+ DLIList<OCCCurve*> curves;
+ for(int i = 0; i < curves.size(); i++)
+ {
+ OCCCurve* curve = curves.get_and_step();
+ curve->get_points(points);
+ }
+ return points.size();
+}
+
//----------------------------------------------------------------
// Function: to update the core Surface
// for any movement or Boolean operation of the body.
Modified: cgm/trunk/geom/OCC/OCCSurface.hpp
===================================================================
--- cgm/trunk/geom/OCC/OCCSurface.hpp 2011-02-16 16:10:48 UTC (rev 4501)
+++ cgm/trunk/geom/OCC/OCCSurface.hpp 2011-02-16 18:15:03 UTC (rev 4502)
@@ -316,6 +316,8 @@
int get_curves(DLIList<OCCCurve*>&);
+ int get_points(DLIList<OCCPoint*>&);
+
void set_shell(OCCShell* shell)
{ myShell = shell;}
More information about the cgma-dev
mailing list