From 34c4dd8f29522c302d80dd3d35537eee9320e047 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 25 Jun 2015 09:20:44 +0300 Subject: [PATCH] refs #589: integration of new interpolation algo to HYDRO --- src/CurveCreator/CurveCreator_Utils.cxx | 2 +- src/CurveCreator/CurveCreator_Utils.hxx | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.2