![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
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. More...
#include <Law_Interpolate.hxx>
Public Member Functions | |
| Law_Interpolate (const occ::handle< NCollection_HArray1< double > > &Points, const bool PeriodicFlag, const double 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 occ::handle< NCollection_HArray1< double > > &Points, const occ::handle< NCollection_HArray1< double > > &Parameters, const bool PeriodicFlag, const double 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 double InitialTangent, const double FinalTangent) |
| loads initial and final tangents if any. | |
| void | Load (const NCollection_Array1< double > &Tangents, const occ::handle< NCollection_HArray1< bool > > &TangentFlags) |
| loads the tangents. We should have as many tangents as they are points in the array if TangentFlags.Value(i) is 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 occ::handle< Law_BSpline > & | Curve () const |
| bool | IsDone () const |
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.
| Law_Interpolate::Law_Interpolate | ( | const occ::handle< NCollection_HArray1< double > > & | Points, |
| const bool | PeriodicFlag, | ||
| const double | 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::Law_Interpolate | ( | const occ::handle< NCollection_HArray1< double > > & | Points, |
| const occ::handle< NCollection_HArray1< double > > & | Parameters, | ||
| const bool | PeriodicFlag, | ||
| const double | 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 Law_Interpolate::ClearTangents | ( | ) |
Clears the tangents if any.
| const occ::handle< Law_BSpline > & Law_Interpolate::Curve | ( | ) | const |
| bool Law_Interpolate::IsDone | ( | ) | const |
loads initial and final tangents if any.
| void Law_Interpolate::Load | ( | const NCollection_Array1< double > & | Tangents, |
| const occ::handle< NCollection_HArray1< bool > > & | TangentFlags ) |
loads the tangents. We should have as many tangents as they are points in the array if TangentFlags.Value(i) is true use the tangent Tangents.Value(i) otherwise the tangent is not constrained.
| void Law_Interpolate::Perform | ( | ) |
Makes the interpolation.