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

    this approximate a given function More...

    #include <AdvApprox_ApproxAFunction.hxx>

    Public Member Functions

     AdvApprox_ApproxAFunction (const int Num1DSS, const int Num2DSS, const int Num3DSS, const occ::handle< NCollection_HArray1< double > > &OneDTol, const occ::handle< NCollection_HArray1< double > > &TwoDTol, const occ::handle< NCollection_HArray1< double > > &ThreeDTol, const double First, const double Last, const GeomAbs_Shape Continuity, const int MaxDeg, const int MaxSeg, const AdvApprox_EvaluatorFunction &Func)
     Constructs approximator tool.
     AdvApprox_ApproxAFunction (const int Num1DSS, const int Num2DSS, const int Num3DSS, const occ::handle< NCollection_HArray1< double > > &OneDTol, const occ::handle< NCollection_HArray1< double > > &TwoDTol, const occ::handle< NCollection_HArray1< double > > &ThreeDTol, const double First, const double Last, const GeomAbs_Shape Continuity, const int MaxDeg, const int MaxSeg, const AdvApprox_EvaluatorFunction &Func, const AdvApprox_Cutting &CutTool)
     Approximation with user method of cutting.
    bool IsDone () const
    bool HasResult () const
    occ::handle< NCollection_HArray2< double > > Poles1d () const
     returns the poles from the algorithms as is
    occ::handle< NCollection_HArray2< gp_Pnt2d > > Poles2d () const
     returns the poles from the algorithms as is
    occ::handle< NCollection_HArray2< gp_Pnt > > Poles () const
     – returns the poles from the algorithms as is
    int NbPoles () const
     as the name says
    void Poles1d (const int Index, NCollection_Array1< double > &P) const
     returns the poles at Index from the 1d subspace
    void Poles2d (const int Index, NCollection_Array1< gp_Pnt2d > &P) const
     returns the poles at Index from the 2d subspace
    void Poles (const int Index, NCollection_Array1< gp_Pnt > &P) const
     returns the poles at Index from the 3d subspace
    int Degree () const
    int NbKnots () const
    int NumSubSpaces (const int Dimension) const
    occ::handle< NCollection_HArray1< double > > Knots () const
    occ::handle< NCollection_HArray1< int > > Multiplicities () const
    occ::handle< NCollection_HArray1< double > > MaxError (const int Dimension) const
     returns the error as is in the algorithms
    occ::handle< NCollection_HArray1< double > > AverageError (const int Dimension) const
     returns the error as is in the algorithms
    double MaxError (const int Dimension, const int Index) const
    double AverageError (const int Dimension, const int Index) const
    void Dump (Standard_OStream &o) const
     display information on approximation.

    Static Public Member Functions

    static void Approximation (const int TotalDimension, const int TotalNumSS, const NCollection_Array1< int > &LocalDimension, const double First, const double Last, AdvApprox_EvaluatorFunction &Evaluator, const AdvApprox_Cutting &CutTool, const int ContinuityOrder, const int NumMaxCoeffs, const int MaxSegments, const NCollection_Array1< double > &TolerancesArray, const int code_precis, int &NumCurves, NCollection_Array1< int > &NumCoeffPerCurveArray, NCollection_Array1< double > &LocalCoefficientArray, NCollection_Array1< double > &IntervalsArray, NCollection_Array1< double > &ErrorMaxArray, NCollection_Array1< double > &AverageErrorArray, int &ErrorCode)

    Detailed Description

    this approximate a given function

    Constructor & Destructor Documentation

    ◆ AdvApprox_ApproxAFunction() [1/2]

    AdvApprox_ApproxAFunction::AdvApprox_ApproxAFunction ( const int Num1DSS,
    const int Num2DSS,
    const int Num3DSS,
    const occ::handle< NCollection_HArray1< double > > & OneDTol,
    const occ::handle< NCollection_HArray1< double > > & TwoDTol,
    const occ::handle< NCollection_HArray1< double > > & ThreeDTol,
    const double First,
    const double Last,
    const GeomAbs_Shape Continuity,
    const int MaxDeg,
    const int MaxSeg,
    const AdvApprox_EvaluatorFunction & Func )

    Constructs approximator tool.

    Warning: the Func should be valid reference to object of type inherited from class EvaluatorFunction from Approx with life time longer than that of the approximator tool;

    the result should be formatted in the following way : <–Num1DSS--> <–2 * Num2DSS--> <–3 * Num3DSS--> R[0] .... R[Num1DSS]..... R[Dimension-1]

    the order in which each Subspace appears should be consistent with the tolerances given in the create function and the results will be given in that order as well that is : Curve2d(n) will correspond to the nth entry described by Num2DSS, Curve(n) will correspond to the nth entry described by Num3DSS The same type of schema applies to the Poles1d, Poles2d and Poles.

    ◆ AdvApprox_ApproxAFunction() [2/2]

    AdvApprox_ApproxAFunction::AdvApprox_ApproxAFunction ( const int Num1DSS,
    const int Num2DSS,
    const int Num3DSS,
    const occ::handle< NCollection_HArray1< double > > & OneDTol,
    const occ::handle< NCollection_HArray1< double > > & TwoDTol,
    const occ::handle< NCollection_HArray1< double > > & ThreeDTol,
    const double First,
    const double Last,
    const GeomAbs_Shape Continuity,
    const int MaxDeg,
    const int MaxSeg,
    const AdvApprox_EvaluatorFunction & Func,
    const AdvApprox_Cutting & CutTool )

    Approximation with user method of cutting.

    Member Function Documentation

    ◆ Approximation()

    void AdvApprox_ApproxAFunction::Approximation ( const int TotalDimension,
    const int TotalNumSS,
    const NCollection_Array1< int > & LocalDimension,
    const double First,
    const double Last,
    AdvApprox_EvaluatorFunction & Evaluator,
    const AdvApprox_Cutting & CutTool,
    const int ContinuityOrder,
    const int NumMaxCoeffs,
    const int MaxSegments,
    const NCollection_Array1< double > & TolerancesArray,
    const int code_precis,
    int & NumCurves,
    NCollection_Array1< int > & NumCoeffPerCurveArray,
    NCollection_Array1< double > & LocalCoefficientArray,
    NCollection_Array1< double > & IntervalsArray,
    NCollection_Array1< double > & ErrorMaxArray,
    NCollection_Array1< double > & AverageErrorArray,
    int & ErrorCode )
    static

    ◆ AverageError() [1/2]

    occ::handle< NCollection_HArray1< double > > AdvApprox_ApproxAFunction::AverageError ( const int Dimension) const

    returns the error as is in the algorithms

    ◆ AverageError() [2/2]

    double AdvApprox_ApproxAFunction::AverageError ( const int Dimension,
    const int Index ) const

    ◆ Degree()

    int AdvApprox_ApproxAFunction::Degree ( ) const

    ◆ Dump()

    void AdvApprox_ApproxAFunction::Dump ( Standard_OStream & o) const

    display information on approximation.

    ◆ HasResult()

    bool AdvApprox_ApproxAFunction::HasResult ( ) const

    ◆ IsDone()

    bool AdvApprox_ApproxAFunction::IsDone ( ) const

    ◆ Knots()

    occ::handle< NCollection_HArray1< double > > AdvApprox_ApproxAFunction::Knots ( ) const

    ◆ MaxError() [1/2]

    occ::handle< NCollection_HArray1< double > > AdvApprox_ApproxAFunction::MaxError ( const int Dimension) const

    returns the error as is in the algorithms

    ◆ MaxError() [2/2]

    double AdvApprox_ApproxAFunction::MaxError ( const int Dimension,
    const int Index ) const

    ◆ Multiplicities()

    occ::handle< NCollection_HArray1< int > > AdvApprox_ApproxAFunction::Multiplicities ( ) const

    ◆ NbKnots()

    int AdvApprox_ApproxAFunction::NbKnots ( ) const

    ◆ NbPoles()

    int AdvApprox_ApproxAFunction::NbPoles ( ) const

    as the name says

    ◆ NumSubSpaces()

    int AdvApprox_ApproxAFunction::NumSubSpaces ( const int Dimension) const

    ◆ Poles() [1/2]

    occ::handle< NCollection_HArray2< gp_Pnt > > AdvApprox_ApproxAFunction::Poles ( ) const

    – returns the poles from the algorithms as is

    ◆ Poles() [2/2]

    void AdvApprox_ApproxAFunction::Poles ( const int Index,
    NCollection_Array1< gp_Pnt > & P ) const

    returns the poles at Index from the 3d subspace

    ◆ Poles1d() [1/2]

    occ::handle< NCollection_HArray2< double > > AdvApprox_ApproxAFunction::Poles1d ( ) const

    returns the poles from the algorithms as is

    ◆ Poles1d() [2/2]

    void AdvApprox_ApproxAFunction::Poles1d ( const int Index,
    NCollection_Array1< double > & P ) const

    returns the poles at Index from the 1d subspace

    ◆ Poles2d() [1/2]

    occ::handle< NCollection_HArray2< gp_Pnt2d > > AdvApprox_ApproxAFunction::Poles2d ( ) const

    returns the poles from the algorithms as is

    ◆ Poles2d() [2/2]

    void AdvApprox_ApproxAFunction::Poles2d ( const int Index,
    NCollection_Array1< gp_Pnt2d > & P ) const

    returns the poles at Index from the 2d subspace


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