Open CASCADE Technology  7.0.0
Public Member Functions | Protected Member Functions
GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox Class Reference

#include <GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox.hxx>

Public Member Functions

 GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox (const GeomInt_TheMultiLineOfWLApprox &SSP, const Standard_Integer FirstPoint, const Standard_Integer LastPoint, const Handle< AppParCurves_HArray1OfConstraintCouple > &TheConstraints, math_Vector &Parameters, const TColStd_Array1OfReal &Knots, const TColStd_Array1OfInteger &Mults, const Standard_Integer Deg, const Standard_Real Tol3d, const Standard_Real Tol2d, const Standard_Integer NbIterations=1)
 Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating BSpline 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...
 
 GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox (const GeomInt_TheMultiLineOfWLApprox &SSP, const Standard_Integer FirstPoint, const Standard_Integer LastPoint, const Handle< AppParCurves_HArray1OfConstraintCouple > &TheConstraints, math_Vector &Parameters, const TColStd_Array1OfReal &Knots, const TColStd_Array1OfInteger &Mults, const Standard_Integer Deg, const Standard_Real Tol3d, const Standard_Real Tol2d, const Standard_Integer NbIterations, const Standard_Real lambda1, const Standard_Real lambda2)
 Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating BSpline 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_MultiBSpCurve Value () const
 returns all the BSpline 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...
 

Protected Member Functions

void Perform (const GeomInt_TheMultiLineOfWLApprox &SSP, const Standard_Integer FirstPoint, const Standard_Integer LastPoint, const Handle< AppParCurves_HArray1OfConstraintCouple > &TheConstraints, math_Vector &Parameters, const TColStd_Array1OfReal &Knots, const TColStd_Array1OfInteger &Mults, const Standard_Integer Deg, const Standard_Real Tol3d, const Standard_Real Tol2d, const Standard_Integer NbIterations=200)
 

Constructor & Destructor Documentation

GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox ( const GeomInt_TheMultiLineOfWLApprox SSP,
const Standard_Integer  FirstPoint,
const Standard_Integer  LastPoint,
const Handle< AppParCurves_HArray1OfConstraintCouple > &  TheConstraints,
math_Vector Parameters,
const TColStd_Array1OfReal Knots,
const TColStd_Array1OfInteger Mults,
const Standard_Integer  Deg,
const Standard_Real  Tol3d,
const Standard_Real  Tol2d,
const Standard_Integer  NbIterations = 1 
)

Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating BSpline 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.

GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox ( const GeomInt_TheMultiLineOfWLApprox SSP,
const Standard_Integer  FirstPoint,
const Standard_Integer  LastPoint,
const Handle< AppParCurves_HArray1OfConstraintCouple > &  TheConstraints,
math_Vector Parameters,
const TColStd_Array1OfReal Knots,
const TColStd_Array1OfInteger Mults,
const Standard_Integer  Deg,
const Standard_Real  Tol3d,
const Standard_Real  Tol2d,
const Standard_Integer  NbIterations,
const Standard_Real  lambda1,
const Standard_Real  lambda2 
)

Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating BSpline 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.

Member Function Documentation

Standard_Real GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::AverageError ( ) const

returns the average error between the old and the new approximation.

Standard_Real GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::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 GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::IsDone ( ) const

returns True if all has been correctly done.

Standard_Real GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::MaxError2d ( ) const

returns the maximum difference between the old and the new approximation.

Standard_Real GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::MaxError3d ( ) const

returns the maximum difference between the old and the new approximation.

void GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::Perform ( const GeomInt_TheMultiLineOfWLApprox SSP,
const Standard_Integer  FirstPoint,
const Standard_Integer  LastPoint,
const Handle< AppParCurves_HArray1OfConstraintCouple > &  TheConstraints,
math_Vector Parameters,
const TColStd_Array1OfReal Knots,
const TColStd_Array1OfInteger Mults,
const Standard_Integer  Deg,
const Standard_Real  Tol3d,
const Standard_Real  Tol2d,
const Standard_Integer  NbIterations = 200 
)
protected
AppParCurves_MultiBSpCurve GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::Value ( ) const

returns all the BSpline curves approximating the MultiLine SSP after minimization of the parameter.


The documentation for this class was generated from the following file: