OCC.BRepApprox module

class OCC.BRepApprox.BRepApprox_Approx

Bases: object

IsDone()
Return type:bool
NbMultiCurves()
Return type:int
SetParameters()
Parameters:
  • Tol3d (float) –
  • Tol2d (float) –
  • DegMin (Standard_Integer) –
  • DegMax (Standard_Integer) –
  • NbIterMax (Standard_Integer) –
  • ApproxWithTangency (bool) – default value is Standard_True
  • Parametrization (Approx_ParametrizationType) – default value is Approx_ChordLength
  • Tol3d
  • Tol2d
  • DegMin
  • DegMax
  • NbIterMax
  • ApproxWithTangency – default value is Standard_True
  • Parametrization – default value is Approx_ChordLength
  • Tol3d
  • Tol2d
  • DegMin
  • DegMax
  • NbIterMax
  • ApproxWithTangency – default value is Standard_True
  • Parametrization – default value is Approx_ChordLength
  • Tol3d
  • Tol2d
  • RelativeTol (bool) –
  • DegMin
  • DegMax
  • NbIterMax
  • NbPntMax (Standard_Integer) –
  • ApproxWithTangency – default value is Standard_True
  • Parametrization – default value is Approx_ChordLength
  • Tol3d
  • Tol2d
  • RelativeTol
  • DegMin
  • DegMax
  • NbIterMax
  • NbPntMax
  • ApproxWithTangency – default value is Standard_True
  • Parametrization – default value is Approx_ChordLength
  • Tol3d
  • Tol2d
  • RelativeTol
  • DegMin
  • DegMax
  • NbIterMax
  • NbPntMax
  • ApproxWithTangency – default value is Standard_True
  • Parametrization – default value is Approx_ChordLength
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

TolReached2d()
Return type:float
TolReached3d()
Return type:float
Value()
Parameters:Index (Standard_Integer) –
Return type:AppParCurves_MultiBSpCurve
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_ApproxLine(*args)

Bases: OCC.MMgt.MMgt_TShared

GetHandle()

BRepApprox_ApproxLine_GetHandle(BRepApprox_ApproxLine self) -> Handle_BRepApprox_ApproxLine

NbPnts()
Return type:int
Point()
Parameters:Index (Standard_Integer) –
Return type:IntSurf_PntOn2S
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_BSpGradient_BFGSOfMyBSplGradientOfTheComputeLineOfApprox(*args)

Bases: object

IsSolutionReached()
Parameters:F (math_MultipleVarFunctionWithGradient &) –
Return type:bool
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfApprox(*args)

Bases: object

CurveValue()
Return type:AppParCurves_MultiBSpCurve
DerivativeFunctionMatrix()
Return type:math_Matrix
Error()
Parameters:
  • IPoint (Standard_Integer) –
  • CurveIndex (Standard_Integer) –
Return type:

float

FirstConstraint()
Parameters:
  • TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
  • FirstPoint (Standard_Integer) –
Return type:

AppParCurves_Constraint

FunctionMatrix()
Return type:math_Matrix
Gradient()
Parameters:
  • X (math_Vector &) –
  • G (math_Vector &) –
Return type:

bool

Index()
Return type:math_IntegerVector
LastConstraint()
Parameters:
  • TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
  • LastPoint (Standard_Integer) –
Return type:

AppParCurves_Constraint

MaxError2d()
Return type:float
MaxError3d()
Return type:float
NbVariables()
Return type:int
NewParameters()
Return type:math_Vector
SetFirstLambda()
Parameters:l1 (float) –
Return type:None
SetLastLambda()
Parameters:l2 (float) –
Return type:None
Value()
Parameters:
  • X (math_Vector &) –
  • F (float &) –
Return type:

bool

Values()
Parameters:
  • X (math_Vector &) –
  • F (float &) –
  • G (math_Vector &) –
Return type:

bool

thisown

The membership flag

class OCC.BRepApprox.BRepApprox_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfApprox(*args)

Bases: object

BSplineValue()
Return type:AppParCurves_MultiBSpCurve
BezierValue()
Return type:AppParCurves_MultiCurve
DerivativeFunctionMatrix()
Return type:math_Matrix
Distance()
Return type:math_Matrix
Error()
Parameters:
  • F (float &) –
  • MaxE3d (float &) –
  • MaxE2d (float &) –
Return type:

None

ErrorGradient()
Parameters:
  • Grad (math_Vector &) –
  • F (float &) –
  • MaxE3d (float &) –
  • MaxE2d (float &) –
Return type:

None

FirstLambda()
Return type:float
FunctionMatrix()
Return type:math_Matrix
IsDone()
Return type:bool
KIndex()
Return type:math_IntegerVector
LastLambda()
Return type:float
Perform()
Parameters:
  • Parameters (math_Vector &) –
  • Parameters
  • l1 (float) –
  • l2 (float) –
  • Parameters
  • V1t (math_Vector &) –
  • V2t (math_Vector &) –
  • l1
  • l2
  • Parameters
  • V1t
  • V2t
  • V1c (math_Vector &) –
  • V2c (math_Vector &) –
  • l1
  • l2
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Points()
Return type:math_Matrix
Poles()
Return type:math_Matrix
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_Gradient_BFGSOfMyGradientOfTheComputeLineBezierOfApprox(*args)

Bases: object

IsSolutionReached()
Parameters:F (math_MultipleVarFunctionWithGradient &) –
Return type:bool
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_Gradient_BFGSOfMyGradientbisOfTheComputeLineOfApprox(*args)

Bases: object

IsSolutionReached()
Parameters:F (math_MultipleVarFunctionWithGradient &) –
Return type:bool
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_MyBSplGradientOfTheComputeLineOfApprox(*args)

Bases: object

AverageError()
Return type:float
Error()
Parameters:Index (Standard_Integer) –
Return type:float
IsDone()
Return type:bool
MaxError2d()
Return type:float
MaxError3d()
Return type:float
Value()
Return type:AppParCurves_MultiBSpCurve
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_MyGradientOfTheComputeLineBezierOfApprox(*args)

Bases: object

AverageError()
Return type:float
Error()
Parameters:Index (Standard_Integer) –
Return type:float
IsDone()
Return type:bool
MaxError2d()
Return type:float
MaxError3d()
Return type:float
Value()
Return type:AppParCurves_MultiCurve
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_MyGradientbisOfTheComputeLineOfApprox(*args)

Bases: object

AverageError()
Return type:float
Error()
Parameters:Index (Standard_Integer) –
Return type:float
IsDone()
Return type:bool
MaxError2d()
Return type:float
MaxError3d()
Return type:float
Value()
Return type:AppParCurves_MultiCurve
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_ParFunctionOfMyGradientOfTheComputeLineBezierOfApprox(*args)

Bases: object

CurveValue()
Return type:AppParCurves_MultiCurve
Error()
Parameters:
  • IPoint (Standard_Integer) –
  • CurveIndex (Standard_Integer) –
Return type:

float

FirstConstraint()
Parameters:
  • TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
  • FirstPoint (Standard_Integer) –
Return type:

AppParCurves_Constraint

Gradient()
Parameters:
  • X (math_Vector &) –
  • G (math_Vector &) –
Return type:

bool

LastConstraint()
Parameters:
  • TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
  • LastPoint (Standard_Integer) –
Return type:

AppParCurves_Constraint

MaxError2d()
Return type:float
MaxError3d()
Return type:float
NbVariables()
Return type:int
NewParameters()
Return type:math_Vector
Value()
Parameters:
  • X (math_Vector &) –
  • F (float &) –
Return type:

bool

Values()
Parameters:
  • X (math_Vector &) –
  • F (float &) –
  • G (math_Vector &) –
Return type:

bool

thisown

The membership flag

class OCC.BRepApprox.BRepApprox_ParFunctionOfMyGradientbisOfTheComputeLineOfApprox(*args)

Bases: object

CurveValue()
Return type:AppParCurves_MultiCurve
Error()
Parameters:
  • IPoint (Standard_Integer) –
  • CurveIndex (Standard_Integer) –
Return type:

float

FirstConstraint()
Parameters:
  • TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
  • FirstPoint (Standard_Integer) –
Return type:

AppParCurves_Constraint

Gradient()
Parameters:
  • X (math_Vector &) –
  • G (math_Vector &) –
Return type:

bool

LastConstraint()
Parameters:
  • TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
  • LastPoint (Standard_Integer) –
Return type:

AppParCurves_Constraint

MaxError2d()
Return type:float
MaxError3d()
Return type:float
NbVariables()
Return type:int
NewParameters()
Return type:math_Vector
Value()
Parameters:
  • X (math_Vector &) –
  • F (float &) –
Return type:

bool

Values()
Parameters:
  • X (math_Vector &) –
  • F (float &) –
  • G (math_Vector &) –
Return type:

bool

thisown

The membership flag

class OCC.BRepApprox.BRepApprox_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfApprox(*args)

Bases: object

BSplineValue()
Return type:AppParCurves_MultiBSpCurve
BezierValue()
Return type:AppParCurves_MultiCurve
DerivativeFunctionMatrix()
Return type:math_Matrix
Distance()
Return type:math_Matrix
Error()
Parameters:
  • F (float &) –
  • MaxE3d (float &) –
  • MaxE2d (float &) –
Return type:

None

ErrorGradient()
Parameters:
  • Grad (math_Vector &) –
  • F (float &) –
  • MaxE3d (float &) –
  • MaxE2d (float &) –
Return type:

None

FirstLambda()
Return type:float
FunctionMatrix()
Return type:math_Matrix
IsDone()
Return type:bool
KIndex()
Return type:math_IntegerVector
LastLambda()
Return type:float
Perform()
Parameters:
  • Parameters (math_Vector &) –
  • Parameters
  • l1 (float) –
  • l2 (float) –
  • Parameters
  • V1t (math_Vector &) –
  • V2t (math_Vector &) –
  • l1
  • l2
  • Parameters
  • V1t
  • V2t
  • V1c (math_Vector &) –
  • V2c (math_Vector &) –
  • l1
  • l2
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Points()
Return type:math_Matrix
Poles()
Return type:math_Matrix
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_ParLeastSquareOfMyGradientbisOfTheComputeLineOfApprox(*args)

Bases: object

BSplineValue()
Return type:AppParCurves_MultiBSpCurve
BezierValue()
Return type:AppParCurves_MultiCurve
DerivativeFunctionMatrix()
Return type:math_Matrix
Distance()
Return type:math_Matrix
Error()
Parameters:
  • F (float &) –
  • MaxE3d (float &) –
  • MaxE2d (float &) –
Return type:

None

ErrorGradient()
Parameters:
  • Grad (math_Vector &) –
  • F (float &) –
  • MaxE3d (float &) –
  • MaxE2d (float &) –
Return type:

None

FirstLambda()
Return type:float
FunctionMatrix()
Return type:math_Matrix
IsDone()
Return type:bool
KIndex()
Return type:math_IntegerVector
LastLambda()
Return type:float
Perform()
Parameters:
  • Parameters (math_Vector &) –
  • Parameters
  • l1 (float) –
  • l2 (float) –
  • Parameters
  • V1t (math_Vector &) –
  • V2t (math_Vector &) –
  • l1
  • l2
  • Parameters
  • V1t
  • V2t
  • V1c (math_Vector &) –
  • V2c (math_Vector &) –
  • l1
  • l2
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Points()
Return type:math_Matrix
Poles()
Return type:math_Matrix
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_ResConstraintOfMyGradientOfTheComputeLineBezierOfApprox(*args)

Bases: object

ConstraintDerivative()
Parameters:
  • SSP (BRepApprox_TheMultiLineOfApprox &) –
  • Parameters (math_Vector &) –
  • Deg (Standard_Integer) –
  • DA (math_Matrix &) –
Return type:

math_Matrix

ConstraintMatrix()
Return type:math_Matrix
Duale()
Return type:math_Vector
InverseMatrix()
Return type:math_Matrix
IsDone()
Return type:bool
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_ResConstraintOfMyGradientbisOfTheComputeLineOfApprox(*args)

Bases: object

ConstraintDerivative()
Parameters:
  • SSP (BRepApprox_TheMultiLineOfApprox &) –
  • Parameters (math_Vector &) –
  • Deg (Standard_Integer) –
  • DA (math_Matrix &) –
Return type:

math_Matrix

ConstraintMatrix()
Return type:math_Matrix
Duale()
Return type:math_Vector
InverseMatrix()
Return type:math_Matrix
IsDone()
Return type:bool
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_SurfaceTool(*args, **kwargs)

Bases: object

static AxeOfRevolution(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Ax1
static BSpline(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:Handle_Geom_BSplineSurface
static BasisCurve(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:Handle_Adaptor3d_HCurve
static Bezier(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:Handle_Geom_BezierSurface
static Cone(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Cone
static Cylinder(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Cylinder
static D0(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
Return type:

void

static D1(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1u (gp_Vec) –
  • D1v (gp_Vec) –
Return type:

void

static D2(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
Return type:

void

static D3(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
  • D3U (gp_Vec) –
  • D3V (gp_Vec) –
  • D3UUV (gp_Vec) –
  • D3UVV (gp_Vec) –
Return type:

void

static DN(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

static Direction(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Dir
static FirstUParameter(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
static FirstVParameter(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
static GetType(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:GeomAbs_SurfaceType
static IsUClosed(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:bool
static IsUPeriodic(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:bool
static IsVClosed(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:bool
static IsVPeriodic(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:bool
static LastUParameter(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
static LastVParameter(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
static NbSamplesU(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • S
  • u1 (float) –
  • u2 (float) –
Return type:

int

Return type:

int

static NbSamplesV(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • S
  • v1 (float) –
  • v2 (float) –
Return type:

int

Return type:

int

static NbUIntervals(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • Sh (GeomAbs_Shape) –
Return type:

int

static NbVIntervals(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • Sh (GeomAbs_Shape) –
Return type:

int

static Plane(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Pln
static Sphere(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Sphere
static Torus(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Torus
static UIntervals(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • T (TColStd_Array1OfReal &) –
  • Sh (GeomAbs_Shape) –
Return type:

void

static UPeriod(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
static UResolution(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • R3d (float) –
Return type:

float

static UTrim(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor3d_HSurface

static VIntervals(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • T (TColStd_Array1OfReal &) –
  • Sh (GeomAbs_Shape) –
Return type:

void

static VPeriod(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
static VResolution(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • R3d (float) –
Return type:

float

static VTrim(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor3d_HSurface

static Value(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
Return type:

gp_Pnt

thisown

The membership flag

OCC.BRepApprox.BRepApprox_SurfaceTool_AxeOfRevolution(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Ax1
OCC.BRepApprox.BRepApprox_SurfaceTool_BSpline(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:Handle_Geom_BSplineSurface
OCC.BRepApprox.BRepApprox_SurfaceTool_BasisCurve(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:Handle_Adaptor3d_HCurve
OCC.BRepApprox.BRepApprox_SurfaceTool_Bezier(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:Handle_Geom_BezierSurface
OCC.BRepApprox.BRepApprox_SurfaceTool_Cone(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Cone
OCC.BRepApprox.BRepApprox_SurfaceTool_Cylinder(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Cylinder
OCC.BRepApprox.BRepApprox_SurfaceTool_D0(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
Return type:

void

OCC.BRepApprox.BRepApprox_SurfaceTool_D1(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1u (gp_Vec) –
  • D1v (gp_Vec) –
Return type:

void

OCC.BRepApprox.BRepApprox_SurfaceTool_D2(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
Return type:

void

OCC.BRepApprox.BRepApprox_SurfaceTool_D3(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
  • D3U (gp_Vec) –
  • D3V (gp_Vec) –
  • D3UUV (gp_Vec) –
  • D3UVV (gp_Vec) –
Return type:

void

OCC.BRepApprox.BRepApprox_SurfaceTool_DN(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

OCC.BRepApprox.BRepApprox_SurfaceTool_Direction(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Dir
OCC.BRepApprox.BRepApprox_SurfaceTool_FirstUParameter(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
OCC.BRepApprox.BRepApprox_SurfaceTool_FirstVParameter(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
OCC.BRepApprox.BRepApprox_SurfaceTool_GetType(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:GeomAbs_SurfaceType
OCC.BRepApprox.BRepApprox_SurfaceTool_IsUClosed(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:bool
OCC.BRepApprox.BRepApprox_SurfaceTool_IsUPeriodic(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:bool
OCC.BRepApprox.BRepApprox_SurfaceTool_IsVClosed(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:bool
OCC.BRepApprox.BRepApprox_SurfaceTool_IsVPeriodic(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:bool
OCC.BRepApprox.BRepApprox_SurfaceTool_LastUParameter(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
OCC.BRepApprox.BRepApprox_SurfaceTool_LastVParameter(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
OCC.BRepApprox.BRepApprox_SurfaceTool_NbSamplesU(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • S
  • u1 (float) –
  • u2 (float) –
Return type:

int

Return type:

int

OCC.BRepApprox.BRepApprox_SurfaceTool_NbSamplesV(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • S
  • v1 (float) –
  • v2 (float) –
Return type:

int

Return type:

int

OCC.BRepApprox.BRepApprox_SurfaceTool_NbUIntervals(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • Sh (GeomAbs_Shape) –
Return type:

int

OCC.BRepApprox.BRepApprox_SurfaceTool_NbVIntervals(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • Sh (GeomAbs_Shape) –
Return type:

int

OCC.BRepApprox.BRepApprox_SurfaceTool_Plane(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Pln
OCC.BRepApprox.BRepApprox_SurfaceTool_Sphere(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Sphere
OCC.BRepApprox.BRepApprox_SurfaceTool_Torus(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:gp_Torus
OCC.BRepApprox.BRepApprox_SurfaceTool_UIntervals(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • T (TColStd_Array1OfReal &) –
  • Sh (GeomAbs_Shape) –
Return type:

void

OCC.BRepApprox.BRepApprox_SurfaceTool_UPeriod(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
OCC.BRepApprox.BRepApprox_SurfaceTool_UResolution(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • R3d (float) –
Return type:

float

OCC.BRepApprox.BRepApprox_SurfaceTool_UTrim(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor3d_HSurface

OCC.BRepApprox.BRepApprox_SurfaceTool_VIntervals(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • T (TColStd_Array1OfReal &) –
  • Sh (GeomAbs_Shape) –
Return type:

void

OCC.BRepApprox.BRepApprox_SurfaceTool_VPeriod(*args)
Parameters:S (BRepAdaptor_Surface &) –
Return type:float
OCC.BRepApprox.BRepApprox_SurfaceTool_VResolution(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • R3d (float) –
Return type:

float

OCC.BRepApprox.BRepApprox_SurfaceTool_VTrim(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor3d_HSurface

OCC.BRepApprox.BRepApprox_SurfaceTool_Value(*args)
Parameters:
  • S (BRepAdaptor_Surface &) –
  • u (float) –
  • v (float) –
Return type:

gp_Pnt

class OCC.BRepApprox.BRepApprox_TheComputeLineBezierOfApprox(*args)

Bases: object

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

AppParCurves_MultiCurve

Return type:

AppParCurves_MultiCurve

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

None

Init()
Parameters:
  • degreemin (Standard_Integer) – default value is 4
  • degreemax (Standard_Integer) – default value is 8
  • Tolerance3d (float) – default value is 1.0e-03
  • Tolerance2d (float) – default value is 1.0e-06
  • NbIterations (Standard_Integer) – default value is 5
  • cutting (bool) – default value is Standard_True
  • parametrization (Approx_ParametrizationType) – default value is Approx_ChordLength
  • Squares (bool) – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

IsAllApproximated()
Return type:bool
IsToleranceReached()
Return type:bool
NbMultiCurves()
Return type:int
Parameters()
Parameters:
  • Index (Standard_Integer) – default value is 1
  • Index – default value is 1
Return type:

TColStd_Array1OfReal

Return type:

TColStd_Array1OfReal

Parametrization()
Parameters:partype (Approx_ParametrizationType &) –
Return type:None
Perform()
Parameters:Line (BRepApprox_TheMultiLineOfApprox &) –
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

SplineValue()
Return type:AppParCurves_MultiBSpCurve
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.BRepApprox.BRepApprox_TheComputeLineOfApprox(*args)

Bases: object

ChangeValue()
Return type:AppParCurves_MultiBSpCurve
Error()
Parameters:
  • tol3d (float &) –
  • tol2d (float &) –
Return type:

None

Init()
Parameters:
  • degreemin (Standard_Integer) – default value is 4
  • degreemax (Standard_Integer) – default value is 8
  • Tolerance3d (float) – default value is 1.0e-03
  • Tolerance2d (float) – default value is 1.0e-06
  • NbIterations (Standard_Integer) – default value is 5
  • cutting (bool) – default value is Standard_True
  • parametrization (Approx_ParametrizationType) – default value is Approx_ChordLength
  • Squares (bool) – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
  • degreemin – default value is 4
  • degreemax – default value is 8
  • Tolerance3d – default value is 1.0e-03
  • Tolerance2d – default value is 1.0e-06
  • NbIterations – default value is 5
  • cutting – default value is Standard_True
  • parametrization – default value is Approx_ChordLength
  • Squares – default value is Standard_False
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Interpol()
Parameters:Line (BRepApprox_TheMultiLineOfApprox &) –
Return type:None
IsAllApproximated()
Return type:bool
IsToleranceReached()
Return type:bool
Parameters()
Return type:TColStd_Array1OfReal
Perform()
Parameters:Line (BRepApprox_TheMultiLineOfApprox &) –
Return type:None
SetConstraints()
Parameters:
  • firstC (AppParCurves_Constraint) –
  • lastC (AppParCurves_Constraint) –
Return type:

None

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

None

SetKnots()
Parameters:Knots (TColStd_Array1OfReal &) –
Return type:None
SetKnotsAndMultiplicities()
Parameters:
  • Knots (TColStd_Array1OfReal &) –
  • Mults (TColStd_Array1OfInteger &) –
Return type:

None

SetParameters()
Parameters:ThePar (math_Vector &) –
Return type:None
SetTolerances()
Parameters:
  • Tolerance3d (float) –
  • Tolerance2d (float) –
Return type:

None

Value()
Return type:AppParCurves_MultiBSpCurve
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox(*args)

Bases: object

AuxillarSurface1()
Return type:BRepAdaptor_Surface
AuxillarSurface2()
Return type:BRepAdaptor_Surface
ComputeParameters()
Parameters:
  • ChoixIso (IntImp_ConstIsoparametric) –
  • Param (TColStd_Array1OfReal &) –
  • UVap (math_Vector &) –
  • BornInf (math_Vector &) –
  • BornSup (math_Vector &) –
  • Tolerance (math_Vector &) –
Return type:

None

Derivatives()
Parameters:
  • X (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

Direction()
Return type:gp_Dir
DirectionOnS1()
Return type:gp_Dir2d
DirectionOnS2()
Return type:gp_Dir2d
IsTangent()
Parameters:
  • UVap (math_Vector &) –
  • Param (TColStd_Array1OfReal &) –
  • BestChoix (IntImp_ConstIsoparametric &) –
Return type:

bool

NbEquations()
Return type:int
NbVariables()
Return type:int
Point()
Return type:gp_Pnt
Root()
Return type:float
Value()
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.BRepApprox.BRepApprox_TheImpPrmSvSurfacesOfApprox(*args)

Bases: OCC.ApproxInt.ApproxInt_SvSurfaces

thisown

The membership flag

class OCC.BRepApprox.BRepApprox_TheInt2SOfThePrmPrmSvSurfacesOfApprox(*args)

Bases: object

Direction()
Return type:gp_Dir
DirectionOnS1()
Return type:gp_Dir2d
DirectionOnS2()
Return type:gp_Dir2d
Function()
Return type:BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox
IsDone()
Return type:bool
IsEmpty()
Return type:bool
IsTangent()
Return type:bool
Perform()
Parameters:
  • Param (TColStd_Array1OfReal &) –
  • Rsnld (math_FunctionSetRoot &) –
  • Param
  • Rsnld
  • ChoixIso (IntImp_ConstIsoparametric) –
Return type:

IntImp_ConstIsoparametric

Return type:

IntImp_ConstIsoparametric

Point()
Return type:IntSurf_PntOn2S
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_TheMultiLineOfApprox(*args)

Bases: object

FirstPoint()
Return type:int
LastPoint()
Return type:int
MakeMLBetween()
Parameters:
  • Low (Standard_Integer) –
  • High (Standard_Integer) –
  • NbPointsToInsert (Standard_Integer) –
Return type:

BRepApprox_TheMultiLineOfApprox

NbP2d()
Return type:int
NbP3d()
Return type:int
Tangency()
Parameters:
  • MPointIndex (Standard_Integer) –
  • tabV (TColgp_Array1OfVec) –
  • MPointIndex
  • tabV2d (TColgp_Array1OfVec2d) –
  • MPointIndex
  • tabV
  • tabV2d
Return type:

bool

Return type:

bool

Return type:

bool

Value()
Parameters:
  • MPointIndex (Standard_Integer) –
  • tabPt (TColgp_Array1OfPnt) –
  • MPointIndex
  • tabPt2d (TColgp_Array1OfPnt2d) –
  • MPointIndex
  • tabPt
  • tabPt2d
Return type:

None

Return type:

None

Return type:

None

WhatStatus()
Return type:Approx_Status
thisown

The membership flag

class OCC.BRepApprox.BRepApprox_TheMultiLineToolOfApprox(*args, **kwargs)

Bases: object

static Curvature(*args)
Parameters:
  • ML (BRepApprox_TheMultiLineOfApprox &) –
  • MPointIndex (Standard_Integer) –
  • tabV (TColgp_Array1OfVec) –
  • ML
  • MPointIndex
  • tabV2d (TColgp_Array1OfVec2d) –
  • ML
  • MPointIndex
  • tabV
  • tabV2d
Return type:

bool

Return type:

bool

Return type:

bool

static FirstPoint(*args)
Parameters:ML (BRepApprox_TheMultiLineOfApprox &) –
Return type:int
static LastPoint(*args)
Parameters:ML (BRepApprox_TheMultiLineOfApprox &) –
Return type:int
static MakeMLBetween(*args)
Parameters:
  • ML (BRepApprox_TheMultiLineOfApprox &) –
  • I1 (Standard_Integer) –
  • I2 (Standard_Integer) –
  • NbPMin (Standard_Integer) –
Return type:

BRepApprox_TheMultiLineOfApprox

static NbP2d(*args)
Parameters:ML (BRepApprox_TheMultiLineOfApprox &) –
Return type:int
static NbP3d(*args)
Parameters:ML (BRepApprox_TheMultiLineOfApprox &) –
Return type:int
static Tangency(*args)
Parameters:
  • ML (BRepApprox_TheMultiLineOfApprox &) –
  • MPointIndex (Standard_Integer) –
  • tabV (TColgp_Array1OfVec) –
  • ML
  • MPointIndex
  • tabV2d (TColgp_Array1OfVec2d) –
  • ML
  • MPointIndex
  • tabV
  • tabV2d
Return type:

bool

Return type:

bool

Return type:

bool

static Value(*args)
Parameters:
  • ML (BRepApprox_TheMultiLineOfApprox &) –
  • MPointIndex (Standard_Integer) –
  • tabPt (TColgp_Array1OfPnt) –
  • ML
  • MPointIndex
  • tabPt2d (TColgp_Array1OfPnt2d) –
  • ML
  • MPointIndex
  • tabPt
  • tabPt2d
Return type:

void

Return type:

void

Return type:

void

static WhatStatus(*args)
Parameters:
  • ML (BRepApprox_TheMultiLineOfApprox &) –
  • I1 (Standard_Integer) –
  • I2 (Standard_Integer) –
Return type:

Approx_Status

thisown

The membership flag

OCC.BRepApprox.BRepApprox_TheMultiLineToolOfApprox_Curvature(*args)
Parameters:
  • ML (BRepApprox_TheMultiLineOfApprox &) –
  • MPointIndex (Standard_Integer) –
  • tabV (TColgp_Array1OfVec) –
  • ML
  • MPointIndex
  • tabV2d (TColgp_Array1OfVec2d) –
  • ML
  • MPointIndex
  • tabV
  • tabV2d
Return type:

bool

Return type:

bool

Return type:

bool

OCC.BRepApprox.BRepApprox_TheMultiLineToolOfApprox_FirstPoint(*args)
Parameters:ML (BRepApprox_TheMultiLineOfApprox &) –
Return type:int
OCC.BRepApprox.BRepApprox_TheMultiLineToolOfApprox_LastPoint(*args)
Parameters:ML (BRepApprox_TheMultiLineOfApprox &) –
Return type:int
OCC.BRepApprox.BRepApprox_TheMultiLineToolOfApprox_MakeMLBetween(*args)
Parameters:
  • ML (BRepApprox_TheMultiLineOfApprox &) –
  • I1 (Standard_Integer) –
  • I2 (Standard_Integer) –
  • NbPMin (Standard_Integer) –
Return type:

BRepApprox_TheMultiLineOfApprox

OCC.BRepApprox.BRepApprox_TheMultiLineToolOfApprox_NbP2d(*args)
Parameters:ML (BRepApprox_TheMultiLineOfApprox &) –
Return type:int
OCC.BRepApprox.BRepApprox_TheMultiLineToolOfApprox_NbP3d(*args)
Parameters:ML (BRepApprox_TheMultiLineOfApprox &) –
Return type:int
OCC.BRepApprox.BRepApprox_TheMultiLineToolOfApprox_Tangency(*args)
Parameters:
  • ML (BRepApprox_TheMultiLineOfApprox &) –
  • MPointIndex (Standard_Integer) –
  • tabV (TColgp_Array1OfVec) –
  • ML
  • MPointIndex
  • tabV2d (TColgp_Array1OfVec2d) –
  • ML
  • MPointIndex
  • tabV
  • tabV2d
Return type:

bool

Return type:

bool

Return type:

bool

OCC.BRepApprox.BRepApprox_TheMultiLineToolOfApprox_Value(*args)
Parameters:
  • ML (BRepApprox_TheMultiLineOfApprox &) –
  • MPointIndex (Standard_Integer) –
  • tabPt (TColgp_Array1OfPnt) –
  • ML
  • MPointIndex
  • tabPt2d (TColgp_Array1OfPnt2d) –
  • ML
  • MPointIndex
  • tabPt
  • tabPt2d
Return type:

void

Return type:

void

Return type:

void

OCC.BRepApprox.BRepApprox_TheMultiLineToolOfApprox_WhatStatus(*args)
Parameters:
  • ML (BRepApprox_TheMultiLineOfApprox &) –
  • I1 (Standard_Integer) –
  • I2 (Standard_Integer) –
Return type:

Approx_Status

class OCC.BRepApprox.BRepApprox_ThePrmPrmSvSurfacesOfApprox(*args)

Bases: OCC.ApproxInt.ApproxInt_SvSurfaces

thisown

The membership flag

class OCC.BRepApprox.BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox(*args)

Bases: object

Derivatives()
Parameters:
  • X (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

Direction2d()
Return type:gp_Dir2d
Direction3d()
Return type:gp_Vec
ISurface()
Return type:IntSurf_Quadric
IsTangent()
Return type:bool
NbEquations()
Return type:int
NbVariables()
Return type:int
PSurface()
Return type:BRepAdaptor_Surface
Point()
Return type:gp_Pnt
Root()
Return type:float
Set()
Parameters:
  • PS (BRepAdaptor_Surface &) –
  • Tolerance (float) –
Return type:

None

Return type:

None

SetImplicitSurface()
Parameters:IS (IntSurf_Quadric &) –
Return type:None
Tolerance()
Return type:float
Value()
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.BRepApprox.Handle_BRepApprox_ApproxLine(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

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

Bases: object

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

The membership flag

value()