OCC.Core.Approx module

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

class Approx_Array1OfAdHSurface(*args)

Bases: object

Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
First()
Init()
IsAllocated()
IsDeletable()
IsEmpty()
Last()
Length()
Lower()
Move()
Resize()
Set()
SetValue()
Size()
Upper()
Value()
begin()
cbegin()
cend()
end()
next()
property thisown

The membership flag

class Approx_Array1OfGTrsf2d(*args)

Bases: object

Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
First()
Init()
IsAllocated()
IsDeletable()
IsEmpty()
Last()
Length()
Lower()
Move()
Resize()
Set()
SetValue()
Size()
Upper()
Value()
begin()
cbegin()
cend()
end()
next()
property thisown

The membership flag

class Approx_Curve2d(*args)

Bases: object

Parameters

C2D

type C2D

Adaptor2d_HCurve2d

param First

type First

float

param Last

type Last

float

param TolU

type TolU

float

param TolV

type TolV

float

param Continuity

type Continuity

GeomAbs_Shape

param MaxDegree

type MaxDegree

int

param MaxSegments

type MaxSegments

int

rtype

None

Curve()
Return type

opencascade::handle<Geom2d_BSplineCurve>

HasResult()
Return type

bool

IsDone()
Return type

bool

MaxError2dU()
Return type

float

MaxError2dV()
Return type

float

property thisown

The membership flag

class Approx_Curve3d(*args)

Bases: object

  • Approximation of a curve with respect of the requiered tolerance Tol3D.
    param Curve

    type Curve

    Adaptor3d_HCurve

    param Tol3d

    type Tol3d

    float

    param Order

    type Order

    GeomAbs_Shape

    param MaxSegments

    type MaxSegments

    int

    param MaxDegree

    type MaxDegree

    int

    rtype

    None

Curve()
Return type

opencascade::handle<Geom_BSplineCurve>

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
    rtype

    bool

IsDone()
  • returns Standard_True if the approximation has been done within requiered tolerance
    rtype

    bool

MaxError()
  • returns the Maximum Error (>0 when an approximation has been done, 0 if no approximation)
    rtype

    float

property thisown

The membership flag

class Approx_CurveOnSurface(*args)

Bases: object

Parameters

C2D

type C2D

Adaptor2d_HCurve2d

param Surf

type Surf

Adaptor3d_HSurface

param First

type First

float

param Last

type Last

float

param Tol

type Tol

float

param Continuity

type Continuity

GeomAbs_Shape

param MaxDegree

type MaxDegree

int

param MaxSegments

type MaxSegments

int

param Only3d

default value is Standard_False

type Only3d

bool

param Only2d

default value is Standard_False

type Only2d

bool

rtype

None

Curve2d()
Return type

opencascade::handle<Geom2d_BSplineCurve>

Curve3d()
Return type

opencascade::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
    rtype

    float

MaxError3d()
Return type

float

property thisown

The membership flag

class Approx_CurvilinearParameter(*args)

Bases: object

  • case of a free 3D curve
    param C3D

    type C3D

    Adaptor3d_HCurve

    param Tol

    type Tol

    float

    param Order

    type Order

    GeomAbs_Shape

    param MaxDegree

    type MaxDegree

    int

    param MaxSegments

    type MaxSegments

    int

    rtype

    None* case of a curve on one surface

    param C2D

    type C2D

    Adaptor2d_HCurve2d

    param Surf

    type Surf

    Adaptor3d_HSurface

    param Tol

    type Tol

    float

    param Order

    type Order

    GeomAbs_Shape

    param MaxDegree

    type MaxDegree

    int

    param MaxSegments

    type MaxSegments

    int

    rtype

    None* case of a curve on two surfaces

    param C2D1

    type C2D1

    Adaptor2d_HCurve2d

    param Surf1

    type Surf1

    Adaptor3d_HSurface

    param C2D2

    type C2D2

    Adaptor2d_HCurve2d

    param Surf2

    type Surf2

    Adaptor3d_HSurface

    param Tol

    type Tol

    float

    param Order

    type Order

    GeomAbs_Shape

    param MaxDegree

    type MaxDegree

    int

    param MaxSegments

    type MaxSegments

    int

    rtype

    None

Curve2d1()
  • returns the BsplineCurve representing the reparametrized 2D curve on the first surface (case of a curve on one or two surfaces)
    rtype

    opencascade::handle<Geom2d_BSplineCurve>

Curve2d2()
  • returns the BsplineCurve representing the reparametrized 2D curve on the second surface (case of a curve on two surfaces)
    rtype

    opencascade::handle<Geom2d_BSplineCurve>

Curve3d()
  • returns the Bspline curve corresponding to the reparametrized 3D curve
    rtype

    opencascade::handle<Geom_BSplineCurve>

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
    rtype

    float

MaxError2d2()
  • returns the maximum error on the second reparametrized 2D curve
    rtype

    float

MaxError3d()
  • returns the maximum error on the reparametrized 3D curve
    rtype

    float

property thisown

The membership flag

class Approx_CurvlinFunc(*args)

Bases: OCC.Core.Standard.Standard_Transient

Parameters

C

type C

Adaptor3d_HCurve

param Tol

type Tol

float

rtype

None:param C2D:

type C2D

Adaptor2d_HCurve2d

param S

type S

Adaptor3d_HSurface

param Tol

type Tol

float

rtype

None:param C2D1:

type C2D1

Adaptor2d_HCurve2d

param C2D2

type C2D2

Adaptor2d_HCurve2d

param S1

type S1

Adaptor3d_HSurface

param S2

type S2

Adaptor3d_HSurface

param Tol

type Tol

float

rtype

None

static DownCast(t)
EvalCase1()
  • if myCase != 1
    param S

    type S

    float

    param Order

    type Order

    int

    param Result

    type Result

    TColStd_Array1OfReal

    rtype

    bool

EvalCase2()
  • if myCase != 2
    param S

    type S

    float

    param Order

    type Order

    int

    param Result

    type Result

    TColStd_Array1OfReal

    rtype

    bool

EvalCase3()
  • if myCase != 3
    param S

    type S

    float

    param Order

    type Order

    int

    param Result

    type Result

    TColStd_Array1OfReal

    rtype

    bool

FirstParameter()
Return type

float

GetLength()
Return type

float

GetSParameter()
  • returns original parameter correponding S.
    param U

    type U

    float

    rtype

    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.
    param C

    type C

    Adaptor3d_Curve

    param S

    type S

    float

    param NumberOfCurve

    type NumberOfCurve

    int

    rtype

    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()
    param T

    type T

    TColStd_Array1OfReal

    param S

    type S

    GeomAbs_Shape

    rtype

    None

LastParameter()
Return type

float

Length()
  • Computes length of the curve.
    rtype

    None* Computes length of the curve segment.

    param C

    type C

    Adaptor3d_Curve

    param FirstU

    type FirstU

    float

    param LasrU

    type LasrU

    float

    rtype

    float

NbIntervals()
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
    param S

    type S

    GeomAbs_Shape

    rtype

    int

SetTol()
  • —Purpose Update the tolerance to used
    param Tol

    type Tol

    float

    rtype

    None

Trim()
  • if First < 0 or Last > 1
    param First

    type First

    float

    param Last

    type Last

    float

    param Tol

    type Tol

    float

    rtype

    None

property thisown

The membership flag

class Approx_FitAndDivide(*args)

Bases: object

  • The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True.
    param Line

    type Line

    AppCont_Function

    param degreemin

    default value is 3

    type degreemin

    int

    param degreemax

    default value is 8

    type degreemax

    int

    param Tolerance3d

    default value is 1.0e-5

    type Tolerance3d

    float

    param Tolerance2d

    default value is 1.0e-5

    type Tolerance2d

    float

    param cutting

    default value is Standard_False

    type cutting

    bool

    param FirstC

    default value is AppParCurves_TangencyPoint

    type FirstC

    AppParCurves_Constraint

    param LastC

    default value is AppParCurves_TangencyPoint

    type LastC

    AppParCurves_Constraint

    rtype

    None* Initializes the fields of the algorithm.

    param degreemin

    default value is 3

    type degreemin

    int

    param degreemax

    default value is 8

    type degreemax

    int

    param Tolerance3d

    default value is 1.0e-05

    type Tolerance3d

    float

    param Tolerance2d

    default value is 1.0e-05

    type Tolerance2d

    float

    param cutting

    default value is Standard_False

    type cutting

    bool

    param FirstC

    default value is AppParCurves_TangencyPoint

    type FirstC

    AppParCurves_Constraint

    param LastC

    default value is AppParCurves_TangencyPoint

    type LastC

    AppParCurves_Constraint

    rtype

    None

Error()
  • returns the tolerances 2d and 3d of the <Index> MultiCurve.
    param Index

    type Index

    int

    param tol3d

    type tol3d

    float

    param tol2d

    type tol2d

    float

    rtype

    None

IsAllApproximated()
  • returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.
    rtype

    bool

IsToleranceReached()
  • returns False if the status NoPointsAdded has been sent.
    rtype

    bool

NbMultiCurves()
  • Returns the number of MultiCurve doing the approximation of the MultiLine.
    rtype

    int

Parameters()
Parameters

Index

type Index

int

param firstp

type firstp

float

param lastp

type lastp

float

rtype

None

Perform()
  • runs the algorithm after having initialized the fields.
    param Line

    type Line

    AppCont_Function

    rtype

    None

SetConstraints()
  • Changes the constraints of the approximation.
    param FirstC

    type FirstC

    AppParCurves_Constraint

    param LastC

    type LastC

    AppParCurves_Constraint

    rtype

    None

SetDegrees()
  • changes the degrees of the approximation.
    param degreemin

    type degreemin

    int

    param degreemax

    type degreemax

    int

    rtype

    None

SetInvOrder()
  • Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used.
    param theInvOrder

    type theInvOrder

    bool

    rtype

    None

SetMaxSegments()
  • Changes the max number of segments, which is allowed for cutting.
    param theMaxSegments

    type theMaxSegments

    int

    rtype

    None

SetTolerances()
  • Changes the tolerances of the approximation.
    param Tolerance3d

    type Tolerance3d

    float

    param Tolerance2d

    type Tolerance2d

    float

    rtype

    None

Value()
  • returns the approximation MultiCurve of range <Index>.
    param Index

    default value is 1

    type Index

    int

    rtype

    AppParCurves_MultiCurve

property thisown

The membership flag

class Approx_FitAndDivide2d(*args)

Bases: object

  • The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True.
    param Line

    type Line

    AppCont_Function

    param degreemin

    default value is 3

    type degreemin

    int

    param degreemax

    default value is 8

    type degreemax

    int

    param Tolerance3d

    default value is 1.0e-5

    type Tolerance3d

    float

    param Tolerance2d

    default value is 1.0e-5

    type Tolerance2d

    float

    param cutting

    default value is Standard_False

    type cutting

    bool

    param FirstC

    default value is AppParCurves_TangencyPoint

    type FirstC

    AppParCurves_Constraint

    param LastC

    default value is AppParCurves_TangencyPoint

    type LastC

    AppParCurves_Constraint

    rtype

    None* Initializes the fields of the algorithm.

    param degreemin

    default value is 3

    type degreemin

    int

    param degreemax

    default value is 8

    type degreemax

    int

    param Tolerance3d

    default value is 1.0e-05

    type Tolerance3d

    float

    param Tolerance2d

    default value is 1.0e-05

    type Tolerance2d

    float

    param cutting

    default value is Standard_False

    type cutting

    bool

    param FirstC

    default value is AppParCurves_TangencyPoint

    type FirstC

    AppParCurves_Constraint

    param LastC

    default value is AppParCurves_TangencyPoint

    type LastC

    AppParCurves_Constraint

    rtype

    None

Error()
  • returns the tolerances 2d and 3d of the <Index> MultiCurve.
    param Index

    type Index

    int

    param tol3d

    type tol3d

    float

    param tol2d

    type tol2d

    float

    rtype

    None

IsAllApproximated()
  • returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.
    rtype

    bool

IsToleranceReached()
  • returns False if the status NoPointsAdded has been sent.
    rtype

    bool

NbMultiCurves()
  • Returns the number of MultiCurve doing the approximation of the MultiLine.
    rtype

    int

Parameters()
Parameters

Index

type Index

int

param firstp

type firstp

float

param lastp

type lastp

float

rtype

None

Perform()
  • runs the algorithm after having initialized the fields.
    param Line

    type Line

    AppCont_Function

    rtype

    None

SetConstraints()
  • Changes the constraints of the approximation.
    param FirstC

    type FirstC

    AppParCurves_Constraint

    param LastC

    type LastC

    AppParCurves_Constraint

    rtype

    None

SetDegrees()
  • changes the degrees of the approximation.
    param degreemin

    type degreemin

    int

    param degreemax

    type degreemax

    int

    rtype

    None

SetInvOrder()
  • Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used.
    param theInvOrder

    type theInvOrder

    bool

    rtype

    None

SetMaxSegments()
  • Changes the max number of segments, which is allowed for cutting.
    param theMaxSegments

    type theMaxSegments

    int

    rtype

    None

SetTolerances()
  • Changes the tolerances of the approximation.
    param Tolerance3d

    type Tolerance3d

    float

    param Tolerance2d

    type Tolerance2d

    float

    rtype

    None

Value()
  • returns the approximation MultiCurve of range <Index>.
    param Index

    default value is 1

    type Index

    int

    rtype

    AppParCurves_MultiCurve

property thisown

The membership flag

class Approx_HArray1OfAdHSurface(*args)

Bases: OCC.Core.Approx.Approx_Array1OfAdHSurface, OCC.Core.Standard.Standard_Transient

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

Array1()
ChangeArray1()
static DownCast(t)
property thisown

The membership flag

class Approx_HArray1OfGTrsf2d(*args)

Bases: OCC.Core.Approx.Approx_Array1OfGTrsf2d, OCC.Core.Standard.Standard_Transient

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

Array1()
ChangeArray1()
static DownCast(t)
property thisown

The membership flag

class Approx_MCurvesToBSpCurve(*args)

Bases: object

Return type

None

Append()
Parameters

MC

type MC

AppParCurves_MultiCurve

rtype

None

ChangeValue()
  • return the composite MultiCurves as a MultiBSpCurve.
    rtype

    AppParCurves_MultiBSpCurve

Perform()
Return type

None:param TheSeq: :type TheSeq: AppParCurves_SequenceOfMultiCurve :rtype: None

Reset()
Return type

None

Value()
  • return the composite MultiCurves as a MultiBSpCurve.
    rtype

    AppParCurves_MultiBSpCurve

property thisown

The membership flag

class Approx_SameParameter(*args)

Bases: object

  • Warning: the C3D and C2D must have the same parametric domain.
    param C3D

    type C3D

    Geom_Curve

    param C2D

    type C2D

    Geom2d_Curve

    param S

    type S

    Geom_Surface

    param Tol

    type Tol

    float

    rtype

    None:param C3D:

    type C3D

    Adaptor3d_HCurve

    param C2D

    type C2D

    Geom2d_Curve

    param S

    type S

    Adaptor3d_HSurface

    param Tol

    type Tol

    float

    rtype

    None* Warning: the C3D and C2D must have the same parametric domain.

    param C3D

    type C3D

    Adaptor3d_HCurve

    param C2D

    type C2D

    Adaptor2d_HCurve2d

    param S

    type S

    Adaptor3d_HSurface

    param Tol

    type Tol

    float

    rtype

    None

Curve2d()
  • Returns the 2D curve that has the same parameter as the 3D curve once evaluated on the surface up to the specified tolerance
    rtype

    opencascade::handle<Geom2d_BSplineCurve>

IsDone()
Return type

bool

IsSameParameter()
  • Tells whether the original data had already the same parameter up to the tolerancein that case nothing is done.
    rtype

    bool

TolReached()
Return type

float

property thisown

The membership flag

class Approx_SequenceOfHArray1OfReal(*args)

Bases: object

Append()
Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
Clear()
Exchange()
First()
InsertAfter()
InsertBefore()
IsEmpty()
Last()
Length()
Lower()
Prepend()
Remove()
Reverse()
Set()
SetValue()
Size()
Split()
Upper()
Value()
begin()
cbegin()
cend()
static delNode()
end()
property thisown

The membership flag

class Approx_SweepApproximation(*args)

Bases: object

Parameters

Func

type Func

Approx_SweepFunction

rtype

None

Average2dError()
  • returns the average error of the <Index> 2d curve approximation.
    param Index

    type Index

    int

    rtype

    float

AverageErrorOnSurf()
  • returns the average error in the suface approximation.
    rtype

    float

Curve2d()
Parameters

Index

type Index

int

param TPoles

type TPoles

TColgp_Array1OfPnt2d

param TKnots

type TKnots

TColStd_Array1OfReal

param TMults

type TMults

TColStd_Array1OfInteger

rtype

None

Curve2dPoles()
Parameters

Index

type Index

int

rtype

TColgp_Array1OfPnt2d

Curves2dDegree()
Return type

int

Curves2dKnots()
Return type

TColStd_Array1OfReal

Curves2dMults()
Return type

TColStd_Array1OfInteger

Curves2dShape()
Parameters

Degree

type Degree

int

param NbPoles

type NbPoles

int

param NbKnots

type NbKnots

int

rtype

None

DumpToString(Approx_SweepApproximation self) → std::string
Eval()
  • The EvaluatorFunction from AdvApprox;
    param Parameter

    type Parameter

    float

    param DerivativeRequest

    type DerivativeRequest

    int

    param First

    type First

    float

    param Last

    type Last

    float

    param Result

    type Result

    float

    rtype

    int

IsDone()
  • returns if we have an result
    rtype

    bool

Max2dError()
  • returns the maximum error of the <Index> 2d curve approximation.
    param Index

    type Index

    int

    rtype

    float

MaxErrorOnSurf()
  • returns the maximum error in the suface approximation.
    rtype

    float

NbCurves2d()
Return type

int

Perform()
  • Perform the Approximation [First, Last]Approx_SweepApproximation.cdl Tol3dTolerance to surface approximation Tol2dTolerance 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. TolAngularTolerance (in radian) to control the angle beetween tangents on the section law and tangent of iso-v on approximed surface ContinuityThe continuity in v waiting on the surface DegmaxThe maximum degree in v requiered on the surface SegmaxThe maximum number of span in v requiered on the surface WarningThe continuity ci can be obtained only if Ft is Ci
    param First

    type First

    float

    param Last

    type Last

    float

    param Tol3d

    type Tol3d

    float

    param BoundTol

    type BoundTol

    float

    param Tol2d

    type Tol2d

    float

    param TolAngular

    type TolAngular

    float

    param Continuity

    default value is GeomAbs_C0

    type Continuity

    GeomAbs_Shape

    param Degmax

    default value is 11

    type Degmax

    int

    param Segmax

    default value is 50

    type Segmax

    int

    rtype

    None

SurfPoles()
Return type

TColgp_Array2OfPnt

SurfShape()
Parameters

UDegree

type UDegree

int

param VDegree

type VDegree

int

param NbUPoles

type NbUPoles

int

param NbVPoles

type NbVPoles

int

param NbUKnots

type NbUKnots

int

param NbVKnots

type NbVKnots

int

rtype

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

type TPoles

TColgp_Array2OfPnt

param TWeights

type TWeights

TColStd_Array2OfReal

param TUKnots

type TUKnots

TColStd_Array1OfReal

param TVKnots

type TVKnots

TColStd_Array1OfReal

param TUMults

type TUMults

TColStd_Array1OfInteger

param TVMults

type TVMults

TColStd_Array1OfInteger

rtype

None

TolCurveOnSurf()
  • returns the maximum 3d error of the <Index> 2d curve approximation on the Surface.
    param Index

    type Index

    int

    rtype

    float

UDegree()
Return type

int

VDegree()
Return type

int

property thisown

The membership flag

class Approx_SweepFunction(*args, **kwargs)

Bases: OCC.Core.Standard.Standard_Transient

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

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
    rtype

    gp_Pnt

D0()
  • compute the section for v = param
    param Param

    type Param

    float

    param First

    type First

    float

    param Last

    type Last

    float

    param Poles

    type Poles

    TColgp_Array1OfPnt

    param Poles2d

    type Poles2d

    TColgp_Array1OfPnt2d

    param Weigths

    type Weigths

    TColStd_Array1OfReal

    rtype

    bool

D1()
  • compute the first derivative in v direction of the section for v = param WarningIt used only for C1 or C2 aproximation
    param Param

    type Param

    float

    param First

    type First

    float

    param Last

    type Last

    float

    param Poles

    type Poles

    TColgp_Array1OfPnt

    param DPoles

    type DPoles

    TColgp_Array1OfVec

    param Poles2d

    type Poles2d

    TColgp_Array1OfPnt2d

    param DPoles2d

    type DPoles2d

    TColgp_Array1OfVec2d

    param Weigths

    type Weigths

    TColStd_Array1OfReal

    param DWeigths

    type DWeigths

    TColStd_Array1OfReal

    rtype

    bool

D2()
  • compute the second derivative in v direction of the section for v = param WarningIt used only for C2 aproximation
    param Param

    type Param

    float

    param First

    type First

    float

    param Last

    type Last

    float

    param Poles

    type Poles

    TColgp_Array1OfPnt

    param DPoles

    type DPoles

    TColgp_Array1OfVec

    param D2Poles

    type D2Poles

    TColgp_Array1OfVec

    param Poles2d

    type Poles2d

    TColgp_Array1OfPnt2d

    param DPoles2d

    type DPoles2d

    TColgp_Array1OfVec2d

    param D2Poles2d

    type D2Poles2d

    TColgp_Array1OfVec2d

    param Weigths

    type Weigths

    TColStd_Array1OfReal

    param DWeigths

    type DWeigths

    TColStd_Array1OfReal

    param D2Weigths

    type D2Weigths

    TColStd_Array1OfReal

    rtype

    bool

static DownCast(t)
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
    param Weigths

    type Weigths

    TColStd_Array1OfReal

    rtype

    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.
    param BoundTol

    type BoundTol

    float

    param SurfTol

    type SurfTol

    float

    param AngleTol

    type AngleTol

    float

    param Tol3d

    type Tol3d

    TColStd_Array1OfReal

    rtype

    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()
    param T

    type T

    TColStd_Array1OfReal

    param S

    type S

    GeomAbs_Shape

    rtype

    void

IsRational()
  • Returns if the sections are rationnal or not
    rtype

    bool

Knots()
  • get the Knots of the section
    param TKnots

    type TKnots

    TColStd_Array1OfReal

    rtype

    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.
    rtype

    float

Mults()
  • get the Multplicities of the section
    param TMults

    type TMults

    TColStd_Array1OfInteger

    rtype

    void

Nb2dCurves()
  • get the number of 2d curves to approximate.
    rtype

    int

NbIntervals()
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
    param S

    type S

    GeomAbs_Shape

    rtype

    int

Resolution()
  • Returns the resolutions in the sub-space 2d <Index> This information is usfull to find an good tolerance in 2d approximation.
    param Index

    type Index

    int

    param Tol

    type Tol

    float

    param TolU

    type TolU

    float

    param TolV

    type TolV

    float

    rtype

    void

SectionShape()
  • get the format of an section
    param NbPoles

    type NbPoles

    int

    param NbKnots

    type NbKnots

    int

    param Degree

    type Degree

    int

    rtype

    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.
    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    void

SetTolerance()
  • Is usefull, if (me) have to run numerical algorithm to perform D0, D1 or D2
    param Tol3d

    type Tol3d

    float

    param Tol2d

    type Tol2d

    float

    rtype

    void

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()