Open CASCADE Technology
6.5.4
|
This class is used to interpolate a BsplineCurve
passing through an array of points, with a C2
Continuity if tangency is not requested at the point.
If tangency is requested at the point the continuity
will be C1. If Perodicity is requested the curve will
be closed and the junction will be the first point
given. The curve will than be only C1
#include <Law_Interpolate.hxx>
Public Member Functions | |
DEFINE_STANDARD_ALLOC | Law_Interpolate (const Handle< TColStd_HArray1OfReal > &Points, const Standard_Boolean PeriodicFlag, const Standard_Real Tolerance) |
Tolerance is to check if the points are not too close to one an other. It is also used to check if the tangent vector is not too small. There should be at least 2 points. If PeriodicFlag is True then the curve will be periodic be periodic | |
Law_Interpolate (const Handle< TColStd_HArray1OfReal > &Points, const Handle< TColStd_HArray1OfReal > &Parameters, const Standard_Boolean PeriodicFlag, const Standard_Real Tolerance) | |
Tolerance is to check if the points are not too close to one an other. It is also used to check if the tangent vector is not too small. There should be at least 2 points. If PeriodicFlag is True then the curve will be periodic be periodic | |
void | Load (const Standard_Real InitialTangent, const Standard_Real FinalTangent) |
loads initial and final tangents if any. | |
void | Load (const TColStd_Array1OfReal &Tangents, const Handle< TColStd_HArray1OfBoolean > &TangentFlags) |
loads the tangents. We should have as many tangents as they are points in the array if TangentFlags.Value(i) is Standard_True use the tangent Tangents.Value(i) otherwise the tangent is not constrained. | |
void | ClearTangents () |
Clears the tangents if any | |
void | Perform () |
Makes the interpolation | |
const Handle_Law_BSpline & | Curve () const |
Standard_Boolean | IsDone () const |
DEFINE_STANDARD_ALLOC Law_Interpolate::Law_Interpolate | ( | const Handle< TColStd_HArray1OfReal > & | Points, |
const Standard_Boolean | PeriodicFlag, | ||
const Standard_Real | Tolerance | ||
) |
Law_Interpolate::Law_Interpolate | ( | const Handle< TColStd_HArray1OfReal > & | Points, |
const Handle< TColStd_HArray1OfReal > & | Parameters, | ||
const Standard_Boolean | PeriodicFlag, | ||
const Standard_Real | Tolerance | ||
) |
const Handle_Law_BSpline& Law_Interpolate::Curve | ( | ) | const |
Standard_Boolean Law_Interpolate::IsDone | ( | ) | const |
void Law_Interpolate::Load | ( | const Standard_Real | InitialTangent, |
const Standard_Real | FinalTangent | ||
) |
void Law_Interpolate::Load | ( | const TColStd_Array1OfReal & | Tangents, |
const Handle< TColStd_HArray1OfBoolean > & | TangentFlags | ||
) |