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
    AppDef_BSplineCompute Class Reference

    #include <AppDef_BSplineCompute.hxx>

    Public Member Functions

     AppDef_BSplineCompute (const AppDef_MultiLine &Line, const int degreemin=4, const int degreemax=8, const double Tolerance3d=1.0e-3, const double Tolerance2d=1.0e-6, const int NbIterations=5, const bool cutting=true, const Approx_ParametrizationType parametrization=Approx_ChordLength, const bool Squares=false)
     The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.
     AppDef_BSplineCompute (const AppDef_MultiLine &Line, const math_Vector &Parameters, const int degreemin=4, const int degreemax=8, const double Tolerance3d=1.0e-03, const double Tolerance2d=1.0e-06, const int NbIterations=5, const bool cutting=true, const bool Squares=false)
     The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.
     AppDef_BSplineCompute (const math_Vector &Parameters, const int degreemin=4, const int degreemax=8, const double Tolerance3d=1.0e-03, const double Tolerance2d=1.0e-06, const int NbIterations=5, const bool cutting=true, const bool Squares=false)
     Initializes the fields of the algorithm.
     AppDef_BSplineCompute (const int degreemin=4, const int degreemax=8, const double Tolerance3d=1.0e-03, const double Tolerance2d=1.0e-06, const int NbIterations=5, const bool cutting=true, const Approx_ParametrizationType parametrization=Approx_ChordLength, const bool Squares=false)
     Initializes the fields of the algorithm.
    void Interpol (const AppDef_MultiLine &Line)
     Constructs an interpolation of the MultiLine <Line> The result will be a C2 curve of degree 3.
    void Init (const int degreemin=4, const int degreemax=8, const double Tolerance3d=1.0e-03, const double Tolerance2d=1.0e-06, const int NbIterations=5, const bool cutting=true, const Approx_ParametrizationType parametrization=Approx_ChordLength, const bool Squares=false)
     Initializes the fields of the algorithm.
    void Perform (const AppDef_MultiLine &Line)
     runs the algorithm after having initialized the fields.
    void SetParameters (const math_Vector &ThePar)
     The approximation will begin with the set of parameters <ThePar>.
    void SetKnots (const NCollection_Array1< double > &Knots)
     The approximation will be done with the set of knots <Knots>. The multiplicities will be set with the degree and the desired continuity.
    void SetKnotsAndMultiplicities (const NCollection_Array1< double > &Knots, const NCollection_Array1< int > &Mults)
     The approximation will be done with the set of knots <Knots> and the multiplicities <Mults>.
    void SetDegrees (const int degreemin, const int degreemax)
     changes the degrees of the approximation.
    void SetTolerances (const double Tolerance3d, const double Tolerance2d)
     Changes the tolerances of the approximation.
    void SetContinuity (const int C)
     sets the continuity of the spline. if C = 2, the spline will be C2.
    void SetConstraints (const AppParCurves_Constraint firstC, const AppParCurves_Constraint lastC)
     changes the first and the last constraint points.
    void SetPeriodic (const bool thePeriodic)
     Sets periodic flag. If thePeriodic = true, algorithm tries to build periodic multicurve using corresponding C1 boundary condition for first and last multipoints. Multiline must be closed.
    bool IsAllApproximated () const
     returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.
    bool IsToleranceReached () const
     returns False if the status NoPointsAdded has been sent.
    void Error (double &tol3d, double &tol2d) const
     returns the tolerances 2d and 3d of the MultiBSpCurve.
    const AppParCurves_MultiBSpCurveValue () const
     returns the result of the approximation.
    AppParCurves_MultiBSpCurveChangeValue ()
     returns the result of the approximation.
    const NCollection_Array1< double > & Parameters () const
     returns the new parameters of the approximation corresponding to the points of the MultiBSpCurve.

    Constructor & Destructor Documentation

    ◆ AppDef_BSplineCompute() [1/4]

    AppDef_BSplineCompute::AppDef_BSplineCompute ( const AppDef_MultiLine & Line,
    const int degreemin = 4,
    const int degreemax = 8,
    const double Tolerance3d = 1.0e-3,
    const double Tolerance2d = 1.0e-6,
    const int NbIterations = 5,
    const bool cutting = true,
    const Approx_ParametrizationType parametrization = Approx_ChordLength,
    const bool Squares = false )

    The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.

    The multiplicities of the internal knots is set by default.

    ◆ AppDef_BSplineCompute() [2/4]

    AppDef_BSplineCompute::AppDef_BSplineCompute ( const AppDef_MultiLine & Line,
    const math_Vector & Parameters,
    const int degreemin = 4,
    const int degreemax = 8,
    const double Tolerance3d = 1.0e-03,
    const double Tolerance2d = 1.0e-06,
    const int NbIterations = 5,
    const bool cutting = true,
    const bool Squares = false )

    The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.

    ◆ AppDef_BSplineCompute() [3/4]

    AppDef_BSplineCompute::AppDef_BSplineCompute ( const math_Vector & Parameters,
    const int degreemin = 4,
    const int degreemax = 8,
    const double Tolerance3d = 1.0e-03,
    const double Tolerance2d = 1.0e-06,
    const int NbIterations = 5,
    const bool cutting = true,
    const bool Squares = false )

    Initializes the fields of the algorithm.

    ◆ AppDef_BSplineCompute() [4/4]

    AppDef_BSplineCompute::AppDef_BSplineCompute ( const int degreemin = 4,
    const int degreemax = 8,
    const double Tolerance3d = 1.0e-03,
    const double Tolerance2d = 1.0e-06,
    const int NbIterations = 5,
    const bool cutting = true,
    const Approx_ParametrizationType parametrization = Approx_ChordLength,
    const bool Squares = false )

    Initializes the fields of the algorithm.

    Member Function Documentation

    ◆ ChangeValue()

    AppParCurves_MultiBSpCurve & AppDef_BSplineCompute::ChangeValue ( )

    returns the result of the approximation.

    ◆ Error()

    void AppDef_BSplineCompute::Error ( double & tol3d,
    double & tol2d ) const

    returns the tolerances 2d and 3d of the MultiBSpCurve.

    ◆ Init()

    void AppDef_BSplineCompute::Init ( const int degreemin = 4,
    const int degreemax = 8,
    const double Tolerance3d = 1.0e-03,
    const double Tolerance2d = 1.0e-06,
    const int NbIterations = 5,
    const bool cutting = true,
    const Approx_ParametrizationType parametrization = Approx_ChordLength,
    const bool Squares = false )

    Initializes the fields of the algorithm.

    ◆ Interpol()

    void AppDef_BSplineCompute::Interpol ( const AppDef_MultiLine & Line)

    Constructs an interpolation of the MultiLine <Line> The result will be a C2 curve of degree 3.

    ◆ IsAllApproximated()

    bool AppDef_BSplineCompute::IsAllApproximated ( ) const

    returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.

    ◆ IsToleranceReached()

    bool AppDef_BSplineCompute::IsToleranceReached ( ) const

    returns False if the status NoPointsAdded has been sent.

    ◆ Parameters()

    const NCollection_Array1< double > & AppDef_BSplineCompute::Parameters ( ) const

    returns the new parameters of the approximation corresponding to the points of the MultiBSpCurve.

    ◆ Perform()

    void AppDef_BSplineCompute::Perform ( const AppDef_MultiLine & Line)

    runs the algorithm after having initialized the fields.

    ◆ SetConstraints()

    void AppDef_BSplineCompute::SetConstraints ( const AppParCurves_Constraint firstC,
    const AppParCurves_Constraint lastC )

    changes the first and the last constraint points.

    ◆ SetContinuity()

    void AppDef_BSplineCompute::SetContinuity ( const int C)

    sets the continuity of the spline. if C = 2, the spline will be C2.

    ◆ SetDegrees()

    void AppDef_BSplineCompute::SetDegrees ( const int degreemin,
    const int degreemax )

    changes the degrees of the approximation.

    ◆ SetKnots()

    void AppDef_BSplineCompute::SetKnots ( const NCollection_Array1< double > & Knots)

    The approximation will be done with the set of knots <Knots>. The multiplicities will be set with the degree and the desired continuity.

    ◆ SetKnotsAndMultiplicities()

    void AppDef_BSplineCompute::SetKnotsAndMultiplicities ( const NCollection_Array1< double > & Knots,
    const NCollection_Array1< int > & Mults )

    The approximation will be done with the set of knots <Knots> and the multiplicities <Mults>.

    ◆ SetParameters()

    void AppDef_BSplineCompute::SetParameters ( const math_Vector & ThePar)

    The approximation will begin with the set of parameters <ThePar>.

    ◆ SetPeriodic()

    void AppDef_BSplineCompute::SetPeriodic ( const bool thePeriodic)

    Sets periodic flag. If thePeriodic = true, algorithm tries to build periodic multicurve using corresponding C1 boundary condition for first and last multipoints. Multiline must be closed.

    ◆ SetTolerances()

    void AppDef_BSplineCompute::SetTolerances ( const double Tolerance3d,
    const double Tolerance2d )

    Changes the tolerances of the approximation.

    ◆ Value()

    const AppParCurves_MultiBSpCurve & AppDef_BSplineCompute::Value ( ) const

    returns the result of the approximation.


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