Open CASCADE Technology
7.2.0
|
#include <AppDef_TheGradient.hxx>
Public Member Functions | |
AppDef_TheGradient (const AppDef_MultiLine &SSP, const Standard_Integer FirstPoint, const Standard_Integer LastPoint, const Handle< AppParCurves_HArray1OfConstraintCouple > &TheConstraints, math_Vector &Parameters, const Standard_Integer Deg, const Standard_Real Tol3d, const Standard_Real Tol2d, const Standard_Integer NbIterations=200) | |
Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating Bezier curves'Poles and Qi the MultiLine points with a parameter ui. In this algorithm, the parameters ui are the unknowns. The tolerance required on this sum is given by Tol. The desired degree of the resulting curve is Deg. More... | |
Standard_Boolean | IsDone () const |
returns True if all has been correctly done. More... | |
AppParCurves_MultiCurve | Value () const |
returns all the Bezier curves approximating the MultiLine SSP after minimization of the parameter. More... | |
Standard_Real | Error (const Standard_Integer Index) const |
returns the difference between the old and the new approximation. An exception is raised if NotDone. An exception is raised if Index<1 or Index>NbParameters. More... | |
Standard_Real | MaxError3d () const |
returns the maximum difference between the old and the new approximation. More... | |
Standard_Real | MaxError2d () const |
returns the maximum difference between the old and the new approximation. More... | |
Standard_Real | AverageError () const |
returns the average error between the old and the new approximation. More... | |
AppDef_TheGradient::AppDef_TheGradient | ( | const AppDef_MultiLine & | SSP, |
const Standard_Integer | FirstPoint, | ||
const Standard_Integer | LastPoint, | ||
const Handle< AppParCurves_HArray1OfConstraintCouple > & | TheConstraints, | ||
math_Vector & | Parameters, | ||
const Standard_Integer | Deg, | ||
const Standard_Real | Tol3d, | ||
const Standard_Real | Tol2d, | ||
const Standard_Integer | NbIterations = 200 |
||
) |
Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating Bezier curves'Poles and Qi the MultiLine points with a parameter ui. In this algorithm, the parameters ui are the unknowns. The tolerance required on this sum is given by Tol. The desired degree of the resulting curve is Deg.
Standard_Real AppDef_TheGradient::AverageError | ( | ) | const |
returns the average error between the old and the new approximation.
Standard_Real AppDef_TheGradient::Error | ( | const Standard_Integer | Index | ) | const |
returns the difference between the old and the new approximation. An exception is raised if NotDone. An exception is raised if Index<1 or Index>NbParameters.
Standard_Boolean AppDef_TheGradient::IsDone | ( | ) | const |
returns True if all has been correctly done.
Standard_Real AppDef_TheGradient::MaxError2d | ( | ) | const |
returns the maximum difference between the old and the new approximation.
Standard_Real AppDef_TheGradient::MaxError3d | ( | ) | const |
returns the maximum difference between the old and the new approximation.
AppParCurves_MultiCurve AppDef_TheGradient::Value | ( | ) | const |
returns all the Bezier curves approximating the MultiLine SSP after minimization of the parameter.