OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox Class Reference

    #include <GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox.hxx>

    Public Member Functions

     GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox (const GeomInt_TheMultiLineOfWLApprox &SSP, const int FirstPoint, const int LastPoint, const occ::handle< NCollection_HArray1< AppParCurves_ConstraintCouple > > &TheConstraints, math_Vector &Parameters, const NCollection_Array1< double > &Knots, const NCollection_Array1< int > &Mults, const int Deg, const double Tol3d, const double Tol2d, const int 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 (const GeomInt_TheMultiLineOfWLApprox &SSP, const int FirstPoint, const int LastPoint, const occ::handle< NCollection_HArray1< AppParCurves_ConstraintCouple > > &TheConstraints, math_Vector &Parameters, const NCollection_Array1< double > &Knots, const NCollection_Array1< int > &Mults, const int Deg, const double Tol3d, const double Tol2d, const int NbIterations, const double lambda1, const double 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.
    bool IsDone () const
     returns True if all has been correctly done.
    AppParCurves_MultiBSpCurve Value () const
     returns all the BSpline curves approximating the MultiLine SSP after minimization of the parameter.
    double Error (const int 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.
    double MaxError3d () const
     returns the maximum difference between the old and the new approximation.
    double MaxError2d () const
     returns the maximum difference between the old and the new approximation.
    double AverageError () const
     returns the average error between the old and the new approximation.

    Protected Member Functions

    void Perform (const GeomInt_TheMultiLineOfWLApprox &SSP, const int FirstPoint, const int LastPoint, const occ::handle< NCollection_HArray1< AppParCurves_ConstraintCouple > > &TheConstraints, math_Vector &Parameters, const NCollection_Array1< double > &Knots, const NCollection_Array1< int > &Mults, const int Deg, const double Tol3d, const double Tol2d, const int NbIterations=200)

    Constructor & Destructor Documentation

    ◆ GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox() [1/2]

    GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox ( const GeomInt_TheMultiLineOfWLApprox & SSP,
    const int FirstPoint,
    const int LastPoint,
    const occ::handle< NCollection_HArray1< AppParCurves_ConstraintCouple > > & TheConstraints,
    math_Vector & Parameters,
    const NCollection_Array1< double > & Knots,
    const NCollection_Array1< int > & Mults,
    const int Deg,
    const double Tol3d,
    const double Tol2d,
    const int 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() [2/2]

    GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox ( const GeomInt_TheMultiLineOfWLApprox & SSP,
    const int FirstPoint,
    const int LastPoint,
    const occ::handle< NCollection_HArray1< AppParCurves_ConstraintCouple > > & TheConstraints,
    math_Vector & Parameters,
    const NCollection_Array1< double > & Knots,
    const NCollection_Array1< int > & Mults,
    const int Deg,
    const double Tol3d,
    const double Tol2d,
    const int NbIterations,
    const double lambda1,
    const double 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

    ◆ AverageError()

    double GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::AverageError ( ) const

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

    ◆ Error()

    double GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::Error ( const int 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()

    bool GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::IsDone ( ) const

    returns True if all has been correctly done.

    ◆ MaxError2d()

    double GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::MaxError2d ( ) const

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

    ◆ MaxError3d()

    double GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::MaxError3d ( ) const

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

    ◆ Perform()

    void GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox::Perform ( const GeomInt_TheMultiLineOfWLApprox & SSP,
    const int FirstPoint,
    const int LastPoint,
    const occ::handle< NCollection_HArray1< AppParCurves_ConstraintCouple > > & TheConstraints,
    math_Vector & Parameters,
    const NCollection_Array1< double > & Knots,
    const NCollection_Array1< int > & Mults,
    const int Deg,
    const double Tol3d,
    const double Tol2d,
    const int NbIterations = 200 )
    protected

    ◆ Value()

    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: