OCC.AdvApprox module

class OCC.AdvApprox.AdvApprox_ApproxAFunction(*args)

Bases: object

static Approximation(*args)
Parameters:
  • TotalDimension (Standard_Integer) –
  • TotalNumSS (Standard_Integer) –
  • LocalDimension (TColStd_Array1OfInteger &) –
  • First (float) –
  • Last (float) –
  • Evaluator (AdvApprox_EvaluatorFunction &) –
  • CutTool (AdvApprox_Cutting &) –
  • ContinuityOrder (Standard_Integer) –
  • NumMaxCoeffs (Standard_Integer) –
  • MaxSegments (Standard_Integer) –
  • TolerancesArray (TColStd_Array1OfReal &) –
  • code_precis (Standard_Integer) –
  • NumCurves (Standard_Integer &) –
  • NumCoeffPerCurveArray (TColStd_Array1OfInteger &) –
  • LocalCoefficientArray (TColStd_Array1OfReal &) –
  • IntervalsArray (TColStd_Array1OfReal &) –
  • ErrorMaxArray (TColStd_Array1OfReal &) –
  • AverageErrorArray (TColStd_Array1OfReal &) –
  • ErrorCode (Standard_Integer &) –
Return type:

void

AverageError()
  • returns the error as is in the algorithms
Parameters:
  • Dimension (Standard_Integer) –
  • Dimension
  • Index (Standard_Integer) –
Return type:

Handle_TColStd_HArray1OfReal

Return type:

float

Degree()
Return type:int
DumpToString()

AdvApprox_ApproxAFunction_DumpToString(AdvApprox_ApproxAFunction self) -> std::string

HasResult()
Return type:bool
IsDone()
Return type:bool
Knots()
Return type:Handle_TColStd_HArray1OfReal
MaxError()
  • returns the error as is in the algorithms
Parameters:
  • Dimension (Standard_Integer) –
  • Dimension
  • Index (Standard_Integer) –
Return type:

Handle_TColStd_HArray1OfReal

Return type:

float

Multiplicities()
Return type:Handle_TColStd_HArray1OfInteger
NbKnots()
Return type:int
NbPoles()
  • as the name says
Return type:int
NumSubSpaces()
Parameters:Dimension (Standard_Integer) –
Return type:int
Poles()
  • – returns the poles from the algorithms as is
Return type:Handle_TColgp_HArray2OfPnt
  • returns the poles at Index from the 3d subspace
Parameters:
  • Index (Standard_Integer) –
  • P (TColgp_Array1OfPnt) –
Return type:

None

Poles1d()
  • returns the poles from the algorithms as is
Return type:Handle_TColStd_HArray2OfReal
  • returns the poles at Index from the 1d subspace
Parameters:
  • Index (Standard_Integer) –
  • P (TColStd_Array1OfReal &) –
Return type:

None

Poles2d()
  • returns the poles from the algorithms as is
Return type:Handle_TColgp_HArray2OfPnt2d
  • returns the poles at Index from the 2d subspace
Parameters:
  • Index (Standard_Integer) –
  • P (TColgp_Array1OfPnt2d) –
Return type:

None

thisown

The membership flag

OCC.AdvApprox.AdvApprox_ApproxAFunction_Approximation(*args)
Parameters:
  • TotalDimension (Standard_Integer) –
  • TotalNumSS (Standard_Integer) –
  • LocalDimension (TColStd_Array1OfInteger &) –
  • First (float) –
  • Last (float) –
  • Evaluator (AdvApprox_EvaluatorFunction &) –
  • CutTool (AdvApprox_Cutting &) –
  • ContinuityOrder (Standard_Integer) –
  • NumMaxCoeffs (Standard_Integer) –
  • MaxSegments (Standard_Integer) –
  • TolerancesArray (TColStd_Array1OfReal &) –
  • code_precis (Standard_Integer) –
  • NumCurves (Standard_Integer &) –
  • NumCoeffPerCurveArray (TColStd_Array1OfInteger &) –
  • LocalCoefficientArray (TColStd_Array1OfReal &) –
  • IntervalsArray (TColStd_Array1OfReal &) –
  • ErrorMaxArray (TColStd_Array1OfReal &) –
  • AverageErrorArray (TColStd_Array1OfReal &) –
  • ErrorCode (Standard_Integer &) –
Return type:

void

class OCC.AdvApprox.AdvApprox_Cutting(*args, **kwargs)

Bases: object

Delete()
Return type:void
Value()
Parameters:
  • a (float) –
  • b (float) –
  • cuttingvalue (float &) –
Return type:

bool

thisown

The membership flag

class OCC.AdvApprox.AdvApprox_DichoCutting

Bases: OCC.AdvApprox.AdvApprox_Cutting

thisown

The membership flag

class OCC.AdvApprox.AdvApprox_PrefAndRec(*args)

Bases: OCC.AdvApprox.AdvApprox_Cutting

thisown

The membership flag

class OCC.AdvApprox.AdvApprox_PrefCutting(*args)

Bases: OCC.AdvApprox.AdvApprox_Cutting

thisown

The membership flag

class OCC.AdvApprox.AdvApprox_SimpleApprox(*args)

Bases: object

AverageError()
Parameters:Index (Standard_Integer) –
Return type:float
Coefficients()
  • returns the coefficients in the Jacobi Base
Return type:Handle_TColStd_HArray1OfReal
Degree()
Return type:int
DifTab()
Return type:Handle_TColStd_HArray1OfReal
DumpToString()

AdvApprox_SimpleApprox_DumpToString(AdvApprox_SimpleApprox self) -> std::string

FirstConstr()
  • returns the constraints at First
Return type:Handle_TColStd_HArray2OfReal
IsDone()
Return type:bool
LastConstr()
  • returns the constraints at Last
Return type:Handle_TColStd_HArray2OfReal
MaxError()
Parameters:Index (Standard_Integer) –
Return type: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;
Parameters:
  • LocalDimension (TColStd_Array1OfInteger &) –
  • LocalTolerancesArray (TColStd_Array1OfReal &) –
  • First (float) –
  • Last (float) –
  • MaxDegree (Standard_Integer) –
Return type:

None

SomTab()
Return type:Handle_TColStd_HArray1OfReal
thisown

The membership flag

class OCC.AdvApprox.SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()