Open CASCADE Technology 7.8.0
Public Member Functions
GeomInt_MyGradientbisOfTheComputeLineOfWLApprox Class Reference

#include <GeomInt_MyGradientbisOfTheComputeLineOfWLApprox.hxx>

Public Member Functions

 GeomInt_MyGradientbisOfTheComputeLineOfWLApprox (const GeomInt_TheMultiLineOfWLApprox &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_Boolean IsDone () const
 returns True if all has been correctly done.
 
AppParCurves_MultiCurve Value () const
 returns all the Bezier curves approximating the MultiLine SSP after minimization of the parameter.
 
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.
 
Standard_Real MaxError3d () const
 returns the maximum difference between the old and the new approximation.
 
Standard_Real MaxError2d () const
 returns the maximum difference between the old and the new approximation.
 
Standard_Real AverageError () const
 returns the average error between the old and the new approximation.
 

Constructor & Destructor Documentation

◆ GeomInt_MyGradientbisOfTheComputeLineOfWLApprox()

GeomInt_MyGradientbisOfTheComputeLineOfWLApprox::GeomInt_MyGradientbisOfTheComputeLineOfWLApprox ( const GeomInt_TheMultiLineOfWLApprox 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.

Member Function Documentation

◆ AverageError()

Standard_Real GeomInt_MyGradientbisOfTheComputeLineOfWLApprox::AverageError ( ) const

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

◆ Error()

Standard_Real GeomInt_MyGradientbisOfTheComputeLineOfWLApprox::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.

◆ IsDone()

Standard_Boolean GeomInt_MyGradientbisOfTheComputeLineOfWLApprox::IsDone ( ) const

returns True if all has been correctly done.

◆ MaxError2d()

Standard_Real GeomInt_MyGradientbisOfTheComputeLineOfWLApprox::MaxError2d ( ) const

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

◆ MaxError3d()

Standard_Real GeomInt_MyGradientbisOfTheComputeLineOfWLApprox::MaxError3d ( ) const

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

◆ Value()

AppParCurves_MultiCurve GeomInt_MyGradientbisOfTheComputeLineOfWLApprox::Value ( ) const

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


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