refs #589: integration of new interpolation algo to HYDRO

This commit is contained in:
asl 2015-06-25 09:20:44 +03:00
parent c3778fc96e
commit 34c4dd8f29
2 changed files with 6 additions and 1 deletions

View 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 // 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. // the tangent vector is equal to B - P.
//======================================================================= //=======================================================================
static bool constructBSpline( bool CurveCreator_Utils::constructBSpline(
const Handle(TColgp_HArray1OfPnt)& thePoints, const Handle(TColgp_HArray1OfPnt)& thePoints,
const Standard_Boolean theIsClosed, const Standard_Boolean theIsClosed,
Handle(Geom_BSplineCurve)& theBSpline) Handle(Geom_BSplineCurve)& theBSpline)

View File

@ -30,6 +30,7 @@
#include <Geom_Curve.hxx> #include <Geom_Curve.hxx>
#include <TopoDS_Shape.hxx> #include <TopoDS_Shape.hxx>
#include <TColgp_HArray1OfPnt.hxx> #include <TColgp_HArray1OfPnt.hxx>
#include <Geom_BSplineCurve.hxx>
#include <list> #include <list>
#include <vector> // TODO: remove #include <vector> // TODO: remove
@ -132,6 +133,10 @@ public:
gp_Pnt& thePoint, gp_Pnt& thePoint1, gp_Pnt& thePoint, gp_Pnt& thePoint1,
gp_Pnt& thePoint2 ); gp_Pnt& thePoint2 );
CURVECREATOR_EXPORT static bool constructBSpline( const Handle(TColgp_HArray1OfPnt)& thePoints,
const Standard_Boolean theIsClosed,
Handle(Geom_BSplineCurve)& theBSpline );
protected: protected:
/* /*
* Returns whether the clicked point belong to the curve or has a very near projection * Returns whether the clicked point belong to the curve or has a very near projection