OCC.Core.AdvApprox module

AdvApprox module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_advapprox.html

class AdvApprox_ApproxAFunction(*args)

Bases: object

  • 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 isCurve2d(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.
    param Num1DSS

    type Num1DSS

    int

    param Num2DSS

    type Num2DSS

    int

    param Num3DSS

    type Num3DSS

    int

    param OneDTol

    type OneDTol

    TColStd_HArray1OfReal

    param TwoDTol

    type TwoDTol

    TColStd_HArray1OfReal

    param ThreeDTol

    type ThreeDTol

    TColStd_HArray1OfReal

    param First

    type First

    float

    param Last

    type Last

    float

    param Continuity

    type Continuity

    GeomAbs_Shape

    param MaxDeg

    type MaxDeg

    int

    param MaxSeg

    type MaxSeg

    int

    param Func

    type Func

    AdvApprox_EvaluatorFunction

    rtype

    None* Approximation with user methode of cutting

    param Num1DSS

    type Num1DSS

    int

    param Num2DSS

    type Num2DSS

    int

    param Num3DSS

    type Num3DSS

    int

    param OneDTol

    type OneDTol

    TColStd_HArray1OfReal

    param TwoDTol

    type TwoDTol

    TColStd_HArray1OfReal

    param ThreeDTol

    type ThreeDTol

    TColStd_HArray1OfReal

    param First

    type First

    float

    param Last

    type Last

    float

    param Continuity

    type Continuity

    GeomAbs_Shape

    param MaxDeg

    type MaxDeg

    int

    param MaxSeg

    type MaxSeg

    int

    param Func

    type Func

    AdvApprox_EvaluatorFunction

    param CutTool

    type CutTool

    AdvApprox_Cutting

    rtype

    None

static Approximation()
Parameters

TotalDimension

type TotalDimension

int

param TotalNumSS

type TotalNumSS

int

param LocalDimension

type LocalDimension

TColStd_Array1OfInteger

param First

type First

float

param Last

type Last

float

param Evaluator

type Evaluator

AdvApprox_EvaluatorFunction

param CutTool

type CutTool

AdvApprox_Cutting

param ContinuityOrder

type ContinuityOrder

int

param NumMaxCoeffs

type NumMaxCoeffs

int

param MaxSegments

type MaxSegments

int

param TolerancesArray

type TolerancesArray

TColStd_Array1OfReal

param code_precis

type code_precis

int

param NumCurves

type NumCurves

int

param NumCoeffPerCurveArray

type NumCoeffPerCurveArray

TColStd_Array1OfInteger

param LocalCoefficientArray

type LocalCoefficientArray

TColStd_Array1OfReal

param IntervalsArray

type IntervalsArray

TColStd_Array1OfReal

param ErrorMaxArray

type ErrorMaxArray

TColStd_Array1OfReal

param AverageErrorArray

type AverageErrorArray

TColStd_Array1OfReal

param ErrorCode

type ErrorCode

int

rtype

void

AverageError()
  • returns the error as is in the algorithms
    param Dimension

    type Dimension

    int

    rtype

    opencascade::handle<TColStd_HArray1OfReal>:param Dimension:

    type Dimension

    int

    param Index

    type Index

    int

    rtype

    float

Degree()
Return type

int

DumpToString(AdvApprox_ApproxAFunction self) → std::string
HasResult()
Return type

bool

IsDone()
Return type

bool

Knots()
Return type

opencascade::handle<TColStd_HArray1OfReal>

MaxError()
  • returns the error as is in the algorithms
    param Dimension

    type Dimension

    int

    rtype

    opencascade::handle<TColStd_HArray1OfReal>:param Dimension:

    type Dimension

    int

    param Index

    type Index

    int

    rtype

    float

Multiplicities()
Return type

opencascade::handle<TColStd_HArray1OfInteger>

NbKnots()
Return type

int

NbPoles()
  • as the name says
    rtype

    int

NumSubSpaces()
Parameters

Dimension

type Dimension

int

rtype

int

Poles()
  • – returns the poles from the algorithms as is
    rtype

    opencascade::handle<TColgp_HArray2OfPnt>* returns the poles at Index from the 3d subspace

    param Index

    type Index

    int

    param P

    type P

    TColgp_Array1OfPnt

    rtype

    None

Poles1d()
  • returns the poles from the algorithms as is
    rtype

    opencascade::handle<TColStd_HArray2OfReal>* returns the poles at Index from the 1d subspace

    param Index

    type Index

    int

    param P

    type P

    TColStd_Array1OfReal

    rtype

    None

Poles2d()
  • returns the poles from the algorithms as is
    rtype

    opencascade::handle<TColgp_HArray2OfPnt2d>* returns the poles at Index from the 2d subspace

    param Index

    type Index

    int

    param P

    type P

    TColgp_Array1OfPnt2d

    rtype

    None

property thisown

The membership flag

class AdvApprox_Cutting(*args, **kwargs)

Bases: object

Value()
Parameters

a

type a

float

param b

type b

float

param cuttingvalue

type cuttingvalue

float

rtype

bool

property thisown

The membership flag

class AdvApprox_DichoCutting(*args)

Bases: OCC.Core.AdvApprox.AdvApprox_Cutting

Return type

None

property thisown

The membership flag

class AdvApprox_PrefAndRec(*args)

Bases: OCC.Core.AdvApprox.AdvApprox_Cutting

Parameters

RecomendedCut

type RecomendedCut

TColStd_Array1OfReal

param PrefferedCut

type PrefferedCut

TColStd_Array1OfReal

param Weight

default value is 5

type Weight

float

rtype

None

property thisown

The membership flag

class AdvApprox_PrefCutting(*args)

Bases: OCC.Core.AdvApprox.AdvApprox_Cutting

Parameters

CutPnts

type CutPnts

TColStd_Array1OfReal

rtype

None

property thisown

The membership flag

class AdvApprox_SimpleApprox(*args)

Bases: object

Parameters

TotalDimension

type TotalDimension

int

param TotalNumSS

type TotalNumSS

int

param Continuity

type Continuity

GeomAbs_Shape

param WorkDegree

type WorkDegree

int

param NbGaussPoints

type NbGaussPoints

int

param JacobiBase

type JacobiBase

PLib_JacobiPolynomial

param Func

type Func

AdvApprox_EvaluatorFunction

rtype

None

AverageError()
Parameters

Index

type Index

int

rtype

float

Coefficients()
  • returns the coefficients in the Jacobi Base
    rtype

    opencascade::handle<TColStd_HArray1OfReal>

Degree()
Return type

int

DifTab()
Return type

opencascade::handle<TColStd_HArray1OfReal>

DumpToString(AdvApprox_SimpleApprox self) → std::string
FirstConstr()
  • returns the constraints at First
    rtype

    opencascade::handle<TColStd_HArray2OfReal>

IsDone()
Return type

bool

LastConstr()
  • returns the constraints at Last
    rtype

    opencascade::handle<TColStd_HArray2OfReal>

MaxError()
Parameters

Index

type Index

int

rtype

float

Perform()
  • 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;
    param LocalDimension

    type LocalDimension

    TColStd_Array1OfInteger

    param LocalTolerancesArray

    type LocalTolerancesArray

    TColStd_Array1OfReal

    param First

    type First

    float

    param Last

    type Last

    float

    param MaxDegree

    type MaxDegree

    int

    rtype

    None

SomTab()
Return type

opencascade::handle<TColStd_HArray1OfReal>

property thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
property thisown

The membership flag

value()