]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
refs #589: integration of new interpolation algo to HYDRO
authorasl <asl@opencascade.com>
Thu, 25 Jun 2015 06:20:44 +0000 (09:20 +0300)
committerasl <asl@opencascade.com>
Thu, 25 Jun 2015 06:20:44 +0000 (09:20 +0300)
src/CurveCreator/CurveCreator_Utils.cxx
src/CurveCreator/CurveCreator_Utils.hxx

index 52fab0c1c4fbf4dbf2b6b47ad861d4bc7d35d322..4f8ca6fb8714b1fa540d9612d75491a4a5e91ebb 100644 (file)
@@ -195,7 +195,7 @@ gp_Pnt CurveCreator_Utils::ConvertClickToPoint( int x, int y, Handle(V3d_View) a
 //  if point P is followed by a point B but is not preceded by any point then
 //  the tangent vector is equal to B - P.
 //=======================================================================
-static bool constructBSpline(
+bool CurveCreator_Utils::constructBSpline(
   const Handle(TColgp_HArray1OfPnt)& thePoints,
   const Standard_Boolean theIsClosed,
   Handle(Geom_BSplineCurve)& theBSpline)
index 78be98b009f98315c60a7ffca808b540305c6142..0494fceeffe9c70c110c283622d2dc77467dbc6d 100644 (file)
@@ -30,6 +30,7 @@
 #include <Geom_Curve.hxx>
 #include <TopoDS_Shape.hxx>
 #include <TColgp_HArray1OfPnt.hxx>
+#include <Geom_BSplineCurve.hxx>
 
 #include <list>
 #include <vector> // TODO: remove
@@ -132,6 +133,10 @@ public:
                                                  gp_Pnt& thePoint, gp_Pnt& thePoint1,
                                                  gp_Pnt& thePoint2 );
 
+  CURVECREATOR_EXPORT static bool constructBSpline( const Handle(TColgp_HArray1OfPnt)& thePoints,
+                                                    const Standard_Boolean theIsClosed,
+                                                    Handle(Geom_BSplineCurve)& theBSpline );
+
 protected:
   /*
    * Returns whether the clicked point belong to the curve or has a very near projection