OCC.Approx module

class OCC.Approx.Approx_Array1OfAdHSurface(*args)

Bases: object

Assign()
Parameters:Other (Approx_Array1OfAdHSurface &) –
Return type:Approx_Array1OfAdHSurface
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_Adaptor3d_HSurface
Destroy()
Return type:None
Init()
Parameters:V (Handle_Adaptor3d_HSurface &) –
Return type:None
IsAllocated()
Return type:bool
Length()
Return type:int
Lower()
Return type:int
Set()
Parameters:Other (Approx_Array1OfAdHSurface &) –
Return type:Approx_Array1OfAdHSurface
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • Value (Handle_Adaptor3d_HSurface &) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (Standard_Integer) –
Return type:Handle_Adaptor3d_HSurface
thisown

The membership flag

class OCC.Approx.Approx_Array1OfGTrsf2d(*args)

Bases: object

Assign()
Parameters:Other (Approx_Array1OfGTrsf2d &) –
Return type:Approx_Array1OfGTrsf2d
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:gp_GTrsf2d
Destroy()
Return type:None
Init()
Parameters:V (gp_GTrsf2d) –
Return type:None
IsAllocated()
Return type:bool
Length()
Return type:int
Lower()
Return type:int
Set()
Parameters:Other (Approx_Array1OfGTrsf2d &) –
Return type:Approx_Array1OfGTrsf2d
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • Value (gp_GTrsf2d) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (Standard_Integer) –
Return type:gp_GTrsf2d
thisown

The membership flag

class OCC.Approx.Approx_Curve2d(*args)

Bases: object

Curve()
Return type:Handle_Geom2d_BSplineCurve
HasResult()
Return type:bool
IsDone()
Return type:bool
MaxError2dU()
Return type:float
MaxError2dV()
Return type:float
thisown

The membership flag

class OCC.Approx.Approx_Curve3d(*args)

Bases: object

Curve()
Return type:Handle_Geom_BSplineCurve
DumpToString()

Approx_Curve3d_DumpToString(Approx_Curve3d self) -> std::string

HasResult()
  • returns Standard_True if the approximation did come out with a result that is not NECESSARELY within the required tolerance
Return type:bool
IsDone()
  • returns Standard_True if the approximation has been done within requiered tolerance
Return type:bool
MaxError()
  • returns the Maximum Error (>0 when an approximation has been done, 0 if no approximation)
Return type:float
thisown

The membership flag

class OCC.Approx.Approx_CurveOnSurface(*args)

Bases: object

Curve2d()
Return type:Handle_Geom2d_BSplineCurve
Curve3d()
Return type:Handle_Geom_BSplineCurve
HasResult()
Return type:bool
IsDone()
Return type:bool
MaxError2dU()
Return type:float
MaxError2dV()
  • returns the maximum errors relativly to the U component or the V component of the 2d Curve
Return type:float
MaxError3d()
Return type:float
thisown

The membership flag

class OCC.Approx.Approx_CurvilinearParameter(*args)

Bases: object

Curve2d1()
  • returns the BsplineCurve representing the reparametrized 2D curve on the first surface (case of a curve on one or two surfaces)
Return type:Handle_Geom2d_BSplineCurve
Curve2d2()
  • returns the BsplineCurve representing the reparametrized 2D curve on the second surface (case of a curve on two surfaces)
Return type:Handle_Geom2d_BSplineCurve
Curve3d()
  • returns the Bspline curve corresponding to the reparametrized 3D curve
Return type:Handle_Geom_BSplineCurve
DumpToString()

Approx_CurvilinearParameter_DumpToString(Approx_CurvilinearParameter self) -> std::string

HasResult()
Return type:bool
IsDone()
Return type:bool
MaxError2d1()
  • returns the maximum error on the first reparametrized 2D curve
Return type:float
MaxError2d2()
  • returns the maximum error on the second reparametrized 2D curve
Return type:float
MaxError3d()
  • returns the maximum error on the reparametrized 3D curve
Return type:float
thisown

The membership flag

class OCC.Approx.Approx_CurvlinFunc(*args)

Bases: OCC.MMgt.MMgt_TShared

EvalCase1()
  • if myCase != 1
Parameters:
  • S (float) –
  • Order (Standard_Integer) –
  • Result (TColStd_Array1OfReal &) –
Return type:

bool

EvalCase2()
  • if myCase != 2
Parameters:
  • S (float) –
  • Order (Standard_Integer) –
  • Result (TColStd_Array1OfReal &) –
Return type:

bool

EvalCase3()
  • if myCase != 3
Parameters:
  • S (float) –
  • Order (Standard_Integer) –
  • Result (TColStd_Array1OfReal &) –
Return type:

bool

FirstParameter()
Return type:float
GetHandle()

Approx_CurvlinFunc_GetHandle(Approx_CurvlinFunc self) -> Handle_Approx_CurvlinFunc

GetLength()
Return type:float
GetSParameter()
  • returns original parameter correponding S.
Parameters:U (float) –
Return type:float
GetUParameter()
  • returns original parameter correponding S. if Case == 1 computation is performed on myC2D1 and mySurf1, otherwise it is done on myC2D2 and mySurf2.
Parameters:
  • C (Adaptor3d_Curve &) –
  • S (float) –
  • NumberOfCurve (Standard_Integer) –
Return type:

float

Intervals()
  • Stores in <T> the parameters bounding the intervals of continuity <S>. The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
Parameters:
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

None

LastParameter()
Return type:float
Length()
  • Computes length of the curve.
Return type:None
  • Computes length of the curve segment.
Parameters:
  • C (Adaptor3d_Curve &) –
  • FirstU (float) –
  • LasrU (float) –
Return type:

float

NbIntervals()
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters:S (GeomAbs_Shape) –
Return type:int
SetTol()
  • //!—Purpose Update the tolerance to used
Parameters:Tol (float) –
Return type:None
Trim()
  • if First < 0 or Last > 1
Parameters:
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

None

thisown

The membership flag

class OCC.Approx.Approx_FitAndDivide(*args)

Bases: object

Error()
Parameters:
  • Index (Standard_Integer) –
  • tol3d (float &) –
  • tol2d (float &) –
Return type:

None

IsAllApproximated()
Return type:bool
IsToleranceReached()
Return type:bool
NbMultiCurves()
Return type:int
Parameters()
Parameters:
  • Index (Standard_Integer) –
  • firstp (float &) –
  • lastp (float &) –
Return type:

None

Perform()
Parameters:Line (AppCont_Function &) –
Return type:None
SetConstraints()
Parameters:
  • FirstC (AppParCurves_Constraint) –
  • LastC (AppParCurves_Constraint) –
Return type:

None

SetDegrees()
Parameters:
  • degreemin (Standard_Integer) –
  • degreemax (Standard_Integer) –
Return type:

None

SetTolerances()
Parameters:
  • Tolerance3d (float) –
  • Tolerance2d (float) –
Return type:

None

Value()
Parameters:
  • Index (Standard_Integer) – default value is 1
  • Index – default value is 1
Return type:

AppParCurves_MultiCurve

Return type:

AppParCurves_MultiCurve

thisown

The membership flag

class OCC.Approx.Approx_FitAndDivide2d(*args)

Bases: object

Error()
Parameters:
  • Index (Standard_Integer) –
  • tol3d (float &) –
  • tol2d (float &) –
Return type:

None

IsAllApproximated()
Return type:bool
IsToleranceReached()
Return type:bool
NbMultiCurves()
Return type:int
Parameters()
Parameters:
  • Index (Standard_Integer) –
  • firstp (float &) –
  • lastp (float &) –
Return type:

None

Perform()
Parameters:Line (AppCont_Function2d &) –
Return type:None
SetConstraints()
Parameters:
  • FirstC (AppParCurves_Constraint) –
  • LastC (AppParCurves_Constraint) –
Return type:

None

SetDegrees()
Parameters:
  • degreemin (Standard_Integer) –
  • degreemax (Standard_Integer) –
Return type:

None

SetTolerances()
Parameters:
  • Tolerance3d (float) –
  • Tolerance2d (float) –
Return type:

None

Value()
Parameters:
  • Index (Standard_Integer) – default value is 1
  • Index – default value is 1
Return type:

AppParCurves_MultiCurve

Return type:

AppParCurves_MultiCurve

thisown

The membership flag

class OCC.Approx.Approx_HArray1OfAdHSurface(*args)

Bases: OCC.MMgt.MMgt_TShared

Array1()
Return type:Approx_Array1OfAdHSurface
ChangeArray1()
Return type:Approx_Array1OfAdHSurface
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_Adaptor3d_HSurface
GetHandle()

Approx_HArray1OfAdHSurface_GetHandle(Approx_HArray1OfAdHSurface self) -> Handle_Approx_HArray1OfAdHSurface

Init()
Parameters:V (Handle_Adaptor3d_HSurface &) –
Return type:None
Length()
Return type:int
Lower()
Return type:int
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • Value (Handle_Adaptor3d_HSurface &) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (Standard_Integer) –
Return type:Handle_Adaptor3d_HSurface
thisown

The membership flag

class OCC.Approx.Approx_HArray1OfGTrsf2d(*args)

Bases: OCC.MMgt.MMgt_TShared

Array1()
Return type:Approx_Array1OfGTrsf2d
ChangeArray1()
Return type:Approx_Array1OfGTrsf2d
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:gp_GTrsf2d
GetHandle()

Approx_HArray1OfGTrsf2d_GetHandle(Approx_HArray1OfGTrsf2d self) -> Handle_Approx_HArray1OfGTrsf2d

Init()
Parameters:V (gp_GTrsf2d) –
Return type:None
Length()
Return type:int
Lower()
Return type:int
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • Value (gp_GTrsf2d) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (Standard_Integer) –
Return type:gp_GTrsf2d
thisown

The membership flag

class OCC.Approx.Approx_MCurvesToBSpCurve

Bases: object

Append()
Parameters:MC (AppParCurves_MultiCurve &) –
Return type:None
ChangeValue()
  • return the composite MultiCurves as a MultiBSpCurve.
Return type:AppParCurves_MultiBSpCurve
Perform()
Return type:None
Parameters:TheSeq (AppParCurves_SequenceOfMultiCurve &) –
Return type:None
Reset()
Return type:None
Value()
  • return the composite MultiCurves as a MultiBSpCurve.
Return type:AppParCurves_MultiBSpCurve
thisown

The membership flag

class OCC.Approx.Approx_MyLeastSquareOfFitAndDivide(*args)

Bases: object

Error()
Parameters:
  • F (float &) –
  • MaxE3d (float &) –
  • MaxE2d (float &) –
Return type:

None

IsDone()
Return type:bool
Value()
Return type:AppParCurves_MultiCurve
thisown

The membership flag

class OCC.Approx.Approx_MyLeastSquareOfFitAndDivide2d(*args)

Bases: object

Error()
Parameters:
  • F (float &) –
  • MaxE3d (float &) –
  • MaxE2d (float &) –
Return type:

None

IsDone()
Return type:bool
Value()
Return type:AppParCurves_MultiCurve
thisown

The membership flag

class OCC.Approx.Approx_SameParameter(*args)

Bases: object

Curve2d()
  • Returns the 2D curve that has the same parameter as the 3D curve once evaluated on the surface up to the specified tolerance
Return type:Handle_Geom2d_BSplineCurve
IsDone()
Return type:bool
IsSameParameter()
  • Tells whether the original data had already the same parameter up to the tolerance : in that case nothing is done.
Return type:bool
TolReached()
Return type:float
thisown

The membership flag

class OCC.Approx.Approx_SequenceNodeOfSequenceOfHArray1OfReal(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Approx_SequenceNodeOfSequenceOfHArray1OfReal_GetHandle(Approx_SequenceNodeOfSequenceOfHArray1OfReal self) -> Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal

Value()
Return type:Handle_TColStd_HArray1OfReal
thisown

The membership flag

class OCC.Approx.Approx_SequenceOfHArray1OfReal

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Handle_TColStd_HArray1OfReal &) –
  • S (Approx_SequenceOfHArray1OfReal &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (Approx_SequenceOfHArray1OfReal &) –
Return type:Approx_SequenceOfHArray1OfReal
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_TColStd_HArray1OfReal
Clear()
Return type:None
First()
Return type:Handle_TColStd_HArray1OfReal
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_TColStd_HArray1OfReal &) –
  • Index
  • S (Approx_SequenceOfHArray1OfReal &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_TColStd_HArray1OfReal &) –
  • Index
  • S (Approx_SequenceOfHArray1OfReal &) –
Return type:

None

Return type:

None

Last()
Return type:Handle_TColStd_HArray1OfReal
Prepend()
Parameters:
  • T (Handle_TColStd_HArray1OfReal &) –
  • S (Approx_SequenceOfHArray1OfReal &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (Approx_SequenceOfHArray1OfReal &) –
Return type:Approx_SequenceOfHArray1OfReal
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Handle_TColStd_HArray1OfReal &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (Approx_SequenceOfHArray1OfReal &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Handle_TColStd_HArray1OfReal
thisown

The membership flag

class OCC.Approx.Approx_SweepApproximation(*args)

Bases: object

Average2dError()
  • returns the average error of the <Index> 2d curve approximation.
Parameters:Index (Standard_Integer) –
Return type:float
AverageErrorOnSurf()
  • returns the average error in the suface approximation.
Return type:float
Curve2d()
Parameters:
  • Index (Standard_Integer) –
  • TPoles (TColgp_Array1OfPnt2d) –
  • TKnots (TColStd_Array1OfReal &) –
  • TMults (TColStd_Array1OfInteger &) –
Return type:

None

Curve2dPoles()
Parameters:Index (Standard_Integer) –
Return type:TColgp_Array1OfPnt2d
Curves2dDegree()
Return type:int
Curves2dKnots()
Return type:TColStd_Array1OfReal
Curves2dMults()
Return type:TColStd_Array1OfInteger
Curves2dShape()
Parameters:
  • Degree (Standard_Integer &) –
  • NbPoles (Standard_Integer &) –
  • NbKnots (Standard_Integer &) –
Return type:

None

DumpToString()

Approx_SweepApproximation_DumpToString(Approx_SweepApproximation self) -> std::string

Eval()
  • The EvaluatorFunction from AdvApprox;
Parameters:
  • Parameter (float) –
  • DerivativeRequest (Standard_Integer) –
  • First (float) –
  • Last (float) –
  • Result (float &) –
Return type:

int

IsDone()
  • returns if we have an result
Return type:bool
Max2dError()
  • returns the maximum error of the <Index> 2d curve approximation.
Parameters:Index (Standard_Integer) –
Return type:float
MaxErrorOnSurf()
  • returns the maximum error in the suface approximation.
Return type:float
NbCurves2d()
Return type:int
Perform()
  • Perform the Approximation [First, Last] : Approx_SweepApproximation.cdl Tol3d : Tolerance to surface approximation Tol2d : Tolerance used to perform curve approximation Normaly the 2d curve are approximated with a tolerance given by the resolution on support surfaces, but if this tolerance is too large Tol2d is used. TolAngular : Tolerance (in radian) to control the angle beetween tangents on the section law and tangent of iso-v on approximed surface Continuity : The continuity in v waiting on the surface Degmax : The maximum degree in v requiered on the surface Segmax : The maximum number of span in v requiered on the surface Warning : The continuity ci can be obtained only if Ft is Ci
Parameters:
  • First (float) –
  • Last (float) –
  • Tol3d (float) –
  • BoundTol (float) –
  • Tol2d (float) –
  • TolAngular (float) –
  • Continuity (GeomAbs_Shape) – default value is GeomAbs_C0
  • Degmax (Standard_Integer) – default value is 11
  • Segmax (Standard_Integer) – default value is 50
Return type:

None

  • Perform the Approximation [First, Last] : Approx_SweepApproximation.cdl Tol3d : Tolerance to surface approximation Tol2d : Tolerance used to perform curve approximation Normaly the 2d curve are approximated with a tolerance given by the resolution on support surfaces, but if this tolerance is too large Tol2d is used. TolAngular : Tolerance (in radian) to control the angle beetween tangents on the section law and tangent of iso-v on approximed surface Continuity : The continuity in v waiting on the surface Degmax : The maximum degree in v requiered on the surface Segmax : The maximum number of span in v requiered on the surface Warning : The continuity ci can be obtained only if Ft is Ci
Parameters:
  • First (float) –
  • Last (float) –
  • Tol3d (float) –
  • BoundTol (float) –
  • Tol2d (float) –
  • TolAngular (float) –
  • Continuity (GeomAbs_Shape) – default value is GeomAbs_C0
  • Degmax (Standard_Integer) – default value is 11
  • Segmax (Standard_Integer) – default value is 50
Return type:

None

  • Perform the Approximation [First, Last] : Approx_SweepApproximation.cdl Tol3d : Tolerance to surface approximation Tol2d : Tolerance used to perform curve approximation Normaly the 2d curve are approximated with a tolerance given by the resolution on support surfaces, but if this tolerance is too large Tol2d is used. TolAngular : Tolerance (in radian) to control the angle beetween tangents on the section law and tangent of iso-v on approximed surface Continuity : The continuity in v waiting on the surface Degmax : The maximum degree in v requiered on the surface Segmax : The maximum number of span in v requiered on the surface Warning : The continuity ci can be obtained only if Ft is Ci
Parameters:
  • First (float) –
  • Last (float) –
  • Tol3d (float) –
  • BoundTol (float) –
  • Tol2d (float) –
  • TolAngular (float) –
  • Continuity (GeomAbs_Shape) – default value is GeomAbs_C0
  • Degmax (Standard_Integer) – default value is 11
  • Segmax (Standard_Integer) – default value is 50
Return type:

None

  • Perform the Approximation [First, Last] : Approx_SweepApproximation.cdl Tol3d : Tolerance to surface approximation Tol2d : Tolerance used to perform curve approximation Normaly the 2d curve are approximated with a tolerance given by the resolution on support surfaces, but if this tolerance is too large Tol2d is used. TolAngular : Tolerance (in radian) to control the angle beetween tangents on the section law and tangent of iso-v on approximed surface Continuity : The continuity in v waiting on the surface Degmax : The maximum degree in v requiered on the surface Segmax : The maximum number of span in v requiered on the surface Warning : The continuity ci can be obtained only if Ft is Ci
Parameters:
  • First (float) –
  • Last (float) –
  • Tol3d (float) –
  • BoundTol (float) –
  • Tol2d (float) –
  • TolAngular (float) –
  • Continuity (GeomAbs_Shape) – default value is GeomAbs_C0
  • Degmax (Standard_Integer) – default value is 11
  • Segmax (Standard_Integer) – default value is 50
Return type:

None

SurfPoles()
Return type:TColgp_Array2OfPnt
SurfShape()
Parameters:
  • UDegree (Standard_Integer &) –
  • VDegree (Standard_Integer &) –
  • NbUPoles (Standard_Integer &) –
  • NbVPoles (Standard_Integer &) –
  • NbUKnots (Standard_Integer &) –
  • NbVKnots (Standard_Integer &) –
Return type:

None

SurfUKnots()
Return type:TColStd_Array1OfReal
SurfUMults()
Return type:TColStd_Array1OfInteger
SurfVKnots()
Return type:TColStd_Array1OfReal
SurfVMults()
Return type:TColStd_Array1OfInteger
SurfWeights()
Return type:TColStd_Array2OfReal
Surface()
Parameters:
  • TPoles (TColgp_Array2OfPnt) –
  • TWeights (TColStd_Array2OfReal &) –
  • TUKnots (TColStd_Array1OfReal &) –
  • TVKnots (TColStd_Array1OfReal &) –
  • TUMults (TColStd_Array1OfInteger &) –
  • TVMults (TColStd_Array1OfInteger &) –
Return type:

None

TolCurveOnSurf()
  • returns the maximum 3d error of the <Index> 2d curve approximation on the Surface.
Parameters:Index (Standard_Integer) –
Return type:float
UDegree()
Return type:int
VDegree()
Return type:int
thisown

The membership flag

class OCC.Approx.Approx_SweepFunction(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

BarycentreOfSurf()
  • Get the barycentre of Surface. An very poor estimation is sufficent. This information is usefull to perform well conditioned rational approximation. Warning: Used only if <self> IsRational
Return type:gp_Pnt
D0()
  • compute the section for v = param
Parameters:
  • Param (float) –
  • First (float) –
  • Last (float) –
  • Poles (TColgp_Array1OfPnt) –
  • Poles2d (TColgp_Array1OfPnt2d) –
  • Weigths (TColStd_Array1OfReal &) –
Return type:

bool

D1()
  • compute the first derivative in v direction of the section for v = param Warning : It used only for C1 or C2 aproximation
Parameters:
  • Param (float) –
  • First (float) –
  • Last (float) –
  • Poles (TColgp_Array1OfPnt) –
  • DPoles (TColgp_Array1OfVec) –
  • Poles2d (TColgp_Array1OfPnt2d) –
  • DPoles2d (TColgp_Array1OfVec2d) –
  • Weigths (TColStd_Array1OfReal &) –
  • DWeigths (TColStd_Array1OfReal &) –
Return type:

bool

D2()
  • compute the second derivative in v direction of the section for v = param Warning : It used only for C2 aproximation
Parameters:
  • Param (float) –
  • First (float) –
  • Last (float) –
  • Poles (TColgp_Array1OfPnt) –
  • DPoles (TColgp_Array1OfVec) –
  • D2Poles (TColgp_Array1OfVec) –
  • Poles2d (TColgp_Array1OfPnt2d) –
  • DPoles2d (TColgp_Array1OfVec2d) –
  • D2Poles2d (TColgp_Array1OfVec2d) –
  • Weigths (TColStd_Array1OfReal &) –
  • DWeigths (TColStd_Array1OfReal &) –
  • D2Weigths (TColStd_Array1OfReal &) –
Return type:

bool

GetHandle()

Approx_SweepFunction_GetHandle(Approx_SweepFunction self) -> Handle_Approx_SweepFunction

GetMinimalWeight()
  • Compute the minimal value of weight for each poles in all sections. This information is usefull to control error in rational approximation. Warning: Used only if <self> IsRational
Parameters:Weigths (TColStd_Array1OfReal &) –
Return type:void
GetTolerance()
  • Returns the tolerance to reach in approximation to satisfy. BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface.
Parameters:
  • BoundTol (float) –
  • SurfTol (float) –
  • AngleTol (float) –
  • Tol3d (TColStd_Array1OfReal &) –
Return type:

void

Intervals()
  • Stores in <T> the parameters bounding the intervals of continuity <S>. The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
Parameters:
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

void

IsRational()
  • Returns if the sections are rationnal or not
Return type:bool
Knots()
  • get the Knots of the section
Parameters:TKnots (TColStd_Array1OfReal &) –
Return type:void
MaximalSection()
  • Returns the length of the greater section. This information is usefull to G1’s control. Warning: With an little value, approximation can be slower.
Return type:float
Mults()
  • get the Multplicities of the section
Parameters:TMults (TColStd_Array1OfInteger &) –
Return type:void
Nb2dCurves()
  • get the number of 2d curves to approximate.
Return type:int
NbIntervals()
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters:S (GeomAbs_Shape) –
Return type:int
Resolution()
  • Returns the resolutions in the sub-space 2d <Index> This information is usfull to find an good tolerance in 2d approximation.
Parameters:
  • Index (Standard_Integer) –
  • Tol (float) –
  • TolU (float &) –
  • TolV (float &) –
Return type:

void

SectionShape()
  • get the format of an section
Parameters:
  • NbPoles (Standard_Integer &) –
  • NbKnots (Standard_Integer &) –
  • Degree (Standard_Integer &) –
Return type:

void

SetInterval()
  • Sets the bounds of the parametric interval on the fonction This determines the derivatives in these values if the function is not Cn.
Parameters:
  • First (float) –
  • Last (float) –
Return type:

void

SetTolerance()
  • Is usefull, if (me) have to run numerical algorithm to perform D0, D1 or D2
Parameters:
  • Tol3d (float) –
  • Tol2d (float) –
Return type:

void

thisown

The membership flag

class OCC.Approx.Handle_Approx_CurvlinFunc(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Approx.Handle_Approx_HArray1OfAdHSurface(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Approx.Handle_Approx_HArray1OfGTrsf2d(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Approx.Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Approx.Handle_Approx_SweepFunction(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

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

Bases: object

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

The membership flag

value()