From: asl Date: Thu, 25 Jun 2015 06:20:44 +0000 (+0300) Subject: refs #589: integration of new interpolation algo to HYDRO X-Git-Tag: V8_0_0a1~3^2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=34c4dd8f29522c302d80dd3d35537eee9320e047;p=modules%2Fgeom.git refs #589: integration of new interpolation algo to HYDRO --- diff --git a/src/CurveCreator/CurveCreator_Utils.cxx b/src/CurveCreator/CurveCreator_Utils.cxx index 52fab0c1c..4f8ca6fb8 100644 --- a/src/CurveCreator/CurveCreator_Utils.cxx +++ b/src/CurveCreator/CurveCreator_Utils.cxx @@ -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) diff --git a/src/CurveCreator/CurveCreator_Utils.hxx b/src/CurveCreator/CurveCreator_Utils.hxx index 78be98b00..0494fceef 100644 --- a/src/CurveCreator/CurveCreator_Utils.hxx +++ b/src/CurveCreator/CurveCreator_Utils.hxx @@ -30,6 +30,7 @@ #include #include #include +#include #include #include // 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