Open CASCADE Technology  7.5.0
Public Member Functions | Static Public Member Functions

AdvApprox_ApproxAFunction Class Reference

this approximate a given function More...

#include <AdvApprox_ApproxAFunction.hxx>

Public Member Functions

 AdvApprox_ApproxAFunction (const Standard_Integer Num1DSS, const Standard_Integer Num2DSS, const Standard_Integer Num3DSS, const Handle< TColStd_HArray1OfReal > &OneDTol, const Handle< TColStd_HArray1OfReal > &TwoDTol, const Handle< TColStd_HArray1OfReal > &ThreeDTol, const Standard_Real First, const Standard_Real Last, const GeomAbs_Shape Continuity, const Standard_Integer MaxDeg, const Standard_Integer MaxSeg, const AdvApprox_EvaluatorFunction &Func)
 Constructs approximator tool. More...
 
 AdvApprox_ApproxAFunction (const Standard_Integer Num1DSS, const Standard_Integer Num2DSS, const Standard_Integer Num3DSS, const Handle< TColStd_HArray1OfReal > &OneDTol, const Handle< TColStd_HArray1OfReal > &TwoDTol, const Handle< TColStd_HArray1OfReal > &ThreeDTol, const Standard_Real First, const Standard_Real Last, const GeomAbs_Shape Continuity, const Standard_Integer MaxDeg, const Standard_Integer MaxSeg, const AdvApprox_EvaluatorFunction &Func, const AdvApprox_Cutting &CutTool)
 Approximation with user methode of cutting. More...
 
Standard_Boolean IsDone () const
 
Standard_Boolean HasResult () const
 
Handle< TColStd_HArray2OfReal > Poles1d () const
 returns the poles from the algorithms as is More...
 
Handle< TColgp_HArray2OfPnt2d > Poles2d () const
 returns the poles from the algorithms as is More...
 
Handle< TColgp_HArray2OfPnt > Poles () const
 – returns the poles from the algorithms as is More...
 
Standard_Integer NbPoles () const
 as the name says More...
 
void Poles1d (const Standard_Integer Index, TColStd_Array1OfReal &P) const
 returns the poles at Index from the 1d subspace More...
 
void Poles2d (const Standard_Integer Index, TColgp_Array1OfPnt2d &P) const
 returns the poles at Index from the 2d subspace More...
 
void Poles (const Standard_Integer Index, TColgp_Array1OfPnt &P) const
 returns the poles at Index from the 3d subspace More...
 
Standard_Integer Degree () const
 
Standard_Integer NbKnots () const
 
Standard_Integer NumSubSpaces (const Standard_Integer Dimension) const
 
Handle< TColStd_HArray1OfReal > Knots () const
 
Handle< TColStd_HArray1OfInteger > Multiplicities () const
 
Handle< TColStd_HArray1OfReal > MaxError (const Standard_Integer Dimension) const
 returns the error as is in the algorithms More...
 
Handle< TColStd_HArray1OfReal > AverageError (const Standard_Integer Dimension) const
 returns the error as is in the algorithms More...
 
Standard_Real MaxError (const Standard_Integer Dimension, const Standard_Integer Index) const
 
Standard_Real AverageError (const Standard_Integer Dimension, const Standard_Integer Index) const
 
void Dump (Standard_OStream &o) const
 diplay information on approximation. More...
 

Static Public Member Functions

static void Approximation (const Standard_Integer TotalDimension, const Standard_Integer TotalNumSS, const TColStd_Array1OfInteger &LocalDimension, const Standard_Real First, const Standard_Real Last, AdvApprox_EvaluatorFunction &Evaluator, const AdvApprox_Cutting &CutTool, const Standard_Integer ContinuityOrder, const Standard_Integer NumMaxCoeffs, const Standard_Integer MaxSegments, const TColStd_Array1OfReal &TolerancesArray, const Standard_Integer code_precis, Standard_Integer &NumCurves, TColStd_Array1OfInteger &NumCoeffPerCurveArray, TColStd_Array1OfReal &LocalCoefficientArray, TColStd_Array1OfReal &IntervalsArray, TColStd_Array1OfReal &ErrorMaxArray, TColStd_Array1OfReal &AverageErrorArray, Standard_Integer &ErrorCode)
 

Detailed Description

this approximate a given function

Constructor & Destructor Documentation

◆ AdvApprox_ApproxAFunction() [1/2]

AdvApprox_ApproxAFunction::AdvApprox_ApproxAFunction ( const Standard_Integer  Num1DSS,
const Standard_Integer  Num2DSS,
const Standard_Integer  Num3DSS,
const Handle< TColStd_HArray1OfReal > &  OneDTol,
const Handle< TColStd_HArray1OfReal > &  TwoDTol,
const Handle< TColStd_HArray1OfReal > &  ThreeDTol,
const Standard_Real  First,
const Standard_Real  Last,
const GeomAbs_Shape  Continuity,
const Standard_Integer  MaxDeg,
const Standard_Integer  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 Standard_Integer  Num1DSS,
const Standard_Integer  Num2DSS,
const Standard_Integer  Num3DSS,
const Handle< TColStd_HArray1OfReal > &  OneDTol,
const Handle< TColStd_HArray1OfReal > &  TwoDTol,
const Handle< TColStd_HArray1OfReal > &  ThreeDTol,
const Standard_Real  First,
const Standard_Real  Last,
const GeomAbs_Shape  Continuity,
const Standard_Integer  MaxDeg,
const Standard_Integer  MaxSeg,
const AdvApprox_EvaluatorFunction Func,
const AdvApprox_Cutting CutTool 
)

Approximation with user methode of cutting.

Member Function Documentation

◆ Approximation()

static void AdvApprox_ApproxAFunction::Approximation ( const Standard_Integer  TotalDimension,
const Standard_Integer  TotalNumSS,
const TColStd_Array1OfInteger LocalDimension,
const Standard_Real  First,
const Standard_Real  Last,
AdvApprox_EvaluatorFunction Evaluator,
const AdvApprox_Cutting CutTool,
const Standard_Integer  ContinuityOrder,
const Standard_Integer  NumMaxCoeffs,
const Standard_Integer  MaxSegments,
const TColStd_Array1OfReal TolerancesArray,
const Standard_Integer  code_precis,
Standard_Integer NumCurves,
TColStd_Array1OfInteger NumCoeffPerCurveArray,
TColStd_Array1OfReal LocalCoefficientArray,
TColStd_Array1OfReal IntervalsArray,
TColStd_Array1OfReal ErrorMaxArray,
TColStd_Array1OfReal AverageErrorArray,
Standard_Integer ErrorCode 
)
static

◆ AverageError() [1/2]

Handle< TColStd_HArray1OfReal > AdvApprox_ApproxAFunction::AverageError ( const Standard_Integer  Dimension) const

returns the error as is in the algorithms

◆ AverageError() [2/2]

Standard_Real AdvApprox_ApproxAFunction::AverageError ( const Standard_Integer  Dimension,
const Standard_Integer  Index 
) const

◆ Degree()

Standard_Integer AdvApprox_ApproxAFunction::Degree ( ) const

◆ Dump()

void AdvApprox_ApproxAFunction::Dump ( Standard_OStream o) const

diplay information on approximation.

◆ HasResult()

Standard_Boolean AdvApprox_ApproxAFunction::HasResult ( ) const

◆ IsDone()

Standard_Boolean AdvApprox_ApproxAFunction::IsDone ( ) const

◆ Knots()

Handle< TColStd_HArray1OfReal > AdvApprox_ApproxAFunction::Knots ( ) const

◆ MaxError() [1/2]

Handle< TColStd_HArray1OfReal > AdvApprox_ApproxAFunction::MaxError ( const Standard_Integer  Dimension) const

returns the error as is in the algorithms

◆ MaxError() [2/2]

Standard_Real AdvApprox_ApproxAFunction::MaxError ( const Standard_Integer  Dimension,
const Standard_Integer  Index 
) const

◆ Multiplicities()

Handle< TColStd_HArray1OfInteger > AdvApprox_ApproxAFunction::Multiplicities ( ) const

◆ NbKnots()

Standard_Integer AdvApprox_ApproxAFunction::NbKnots ( ) const

◆ NbPoles()

Standard_Integer AdvApprox_ApproxAFunction::NbPoles ( ) const

as the name says

◆ NumSubSpaces()

Standard_Integer AdvApprox_ApproxAFunction::NumSubSpaces ( const Standard_Integer  Dimension) const

◆ Poles() [1/2]

Handle< TColgp_HArray2OfPnt > AdvApprox_ApproxAFunction::Poles ( ) const

– returns the poles from the algorithms as is

◆ Poles() [2/2]

void AdvApprox_ApproxAFunction::Poles ( const Standard_Integer  Index,
TColgp_Array1OfPnt P 
) const

returns the poles at Index from the 3d subspace

◆ Poles1d() [1/2]

Handle< TColStd_HArray2OfReal > AdvApprox_ApproxAFunction::Poles1d ( ) const

returns the poles from the algorithms as is

◆ Poles1d() [2/2]

void AdvApprox_ApproxAFunction::Poles1d ( const Standard_Integer  Index,
TColStd_Array1OfReal P 
) const

returns the poles at Index from the 1d subspace

◆ Poles2d() [1/2]

Handle< TColgp_HArray2OfPnt2d > AdvApprox_ApproxAFunction::Poles2d ( ) const

returns the poles from the algorithms as is

◆ Poles2d() [2/2]

void AdvApprox_ApproxAFunction::Poles2d ( const Standard_Integer  Index,
TColgp_Array1OfPnt2d P 
) const

returns the poles at Index from the 2d subspace


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