mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
refs #589: integration of new interpolation algo to HYDRO
This commit is contained in:
parent
c3778fc96e
commit
34c4dd8f29
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user