OCC.GeomFill module

class OCC.GeomFill.GeomFill_AppSurf(*args)

Bases: OCC.AppBlend.AppBlend_Approx

Continuity()
Return type:GeomAbs_Shape
CriteriumWeight()
Parameters:
  • W1 (float &) –
  • W2 (float &) –
  • W3 (float &) –
Return type:

None

Init()
Parameters:
  • Degmin (Standard_Integer) –
  • Degmax (Standard_Integer) –
  • Tol3d (float) –
  • Tol2d (float) –
  • NbIt (Standard_Integer) –
  • KnownParameters (bool) – default value is Standard_False
  • Degmin
  • Degmax
  • Tol3d
  • Tol2d
  • NbIt
  • KnownParameters – default value is Standard_False
Return type:

None

Return type:

None

ParType()
Return type:Approx_ParametrizationType
Perform()
Parameters:
  • Lin (Handle_GeomFill_Line &) –
  • SecGen (GeomFill_SectionGenerator &) –
  • SpApprox (bool) – default value is Standard_False
  • Lin
  • SecGen
  • SpApprox – default value is Standard_False
  • Lin
  • SecGen
  • NbMaxP (Standard_Integer) –
Return type:

None

Return type:

None

Return type:

None

PerformSmoothing()
Parameters:
  • Lin (Handle_GeomFill_Line &) –
  • SecGen (GeomFill_SectionGenerator &) –
Return type:

None

SetContinuity()
Parameters:C (GeomAbs_Shape) –
Return type:None
SetCriteriumWeight()
Parameters:
  • W1 (float) –
  • W2 (float) –
  • W3 (float) –
Return type:

None

SetParType()
Parameters:ParType (Approx_ParametrizationType) –
Return type:None
thisown

The membership flag

class OCC.GeomFill.GeomFill_AppSweep(*args)

Bases: OCC.AppBlend.AppBlend_Approx

Continuity()
Return type:GeomAbs_Shape
CriteriumWeight()
Parameters:
  • W1 (float &) –
  • W2 (float &) –
  • W3 (float &) –
Return type:

None

Init()
Parameters:
  • Degmin (Standard_Integer) –
  • Degmax (Standard_Integer) –
  • Tol3d (float) –
  • Tol2d (float) –
  • NbIt (Standard_Integer) –
  • KnownParameters (bool) – default value is Standard_False
  • Degmin
  • Degmax
  • Tol3d
  • Tol2d
  • NbIt
  • KnownParameters – default value is Standard_False
Return type:

None

Return type:

None

ParType()
Return type:Approx_ParametrizationType
Perform()
Parameters:
  • Lin (Handle_GeomFill_Line &) –
  • SecGen (GeomFill_SweepSectionGenerator &) –
  • SpApprox (bool) – default value is Standard_False
  • Lin
  • SecGen
  • SpApprox – default value is Standard_False
  • Lin
  • SecGen
  • NbMaxP (Standard_Integer) –
Return type:

None

Return type:

None

Return type:

None

PerformSmoothing()
Parameters:
  • Lin (Handle_GeomFill_Line &) –
  • SecGen (GeomFill_SweepSectionGenerator &) –
Return type:

None

SetContinuity()
Parameters:C (GeomAbs_Shape) –
Return type:None
SetCriteriumWeight()
Parameters:
  • W1 (float) –
  • W2 (float) –
  • W3 (float) –
Return type:

None

SetParType()
Parameters:ParType (Approx_ParametrizationType) –
Return type:None
thisown

The membership flag

class OCC.GeomFill.GeomFill_Array1OfLocationLaw(*args)

Bases: object

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

None

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

The membership flag

class OCC.GeomFill.GeomFill_Array1OfSectionLaw(*args)

Bases: object

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

None

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

The membership flag

class OCC.GeomFill.GeomFill_BSplineCurves(*args)

Bases: object

Init()
  • if the curves cannot be joined
Parameters:
  • C1 (Handle_Geom_BSplineCurve &) –
  • C2 (Handle_Geom_BSplineCurve &) –
  • C3 (Handle_Geom_BSplineCurve &) –
  • C4 (Handle_Geom_BSplineCurve &) –
  • Type (GeomFill_FillingStyle) –
Return type:

None

  • if the curves cannot be joined
Parameters:
  • C1 (Handle_Geom_BSplineCurve &) –
  • C2 (Handle_Geom_BSplineCurve &) –
  • C3 (Handle_Geom_BSplineCurve &) –
  • Type (GeomFill_FillingStyle) –
Return type:

None

  • Initializes or reinitializes this algorithm with two, three, or four curves - C1, C2, C3, and C4 - and Type, one of the following filling styles: - GeomFill_Stretch - the style with the flattest patch - GeomFill_Coons - a rounded style of patch with less depth than that of Curved - GeomFill_Curved - the style with the most rounded patch. Exceptions Standard_ConstructionError if the curves are not contiguous.
Parameters:
  • C1 (Handle_Geom_BSplineCurve &) –
  • C2 (Handle_Geom_BSplineCurve &) –
  • Type (GeomFill_FillingStyle) –
Return type:

None

Surface()
  • Returns the BSpline surface Surface resulting from the computation performed by this algorithm.
Return type:Handle_Geom_BSplineSurface
thisown

The membership flag

class OCC.GeomFill.GeomFill_BezierCurves(*args)

Bases: object

Init()
  • if the curves cannot be joined
Parameters:
  • C1 (Handle_Geom_BezierCurve &) –
  • C2 (Handle_Geom_BezierCurve &) –
  • C3 (Handle_Geom_BezierCurve &) –
  • C4 (Handle_Geom_BezierCurve &) –
  • Type (GeomFill_FillingStyle) –
Return type:

None

  • if the curves cannot be joined
Parameters:
  • C1 (Handle_Geom_BezierCurve &) –
  • C2 (Handle_Geom_BezierCurve &) –
  • C3 (Handle_Geom_BezierCurve &) –
  • Type (GeomFill_FillingStyle) –
Return type:

None

  • Initializes or reinitializes this algorithm with two, three, or four curves - C1, C2, C3, and C4 - and Type, one of the following filling styles: - GeomFill_Stretch - the style with the flattest patch - GeomFill_Coons - a rounded style of patch with less depth than that of Curved - GeomFill_Curved - the style with the most rounded patch. Exceptions Standard_ConstructionError if the curves are not contiguous.
Parameters:
  • C1 (Handle_Geom_BezierCurve &) –
  • C2 (Handle_Geom_BezierCurve &) –
  • Type (GeomFill_FillingStyle) –
Return type:

None

Surface()
  • Returns the Bezier surface resulting from the computation performed by this algorithm.
Return type:Handle_Geom_BezierSurface
thisown

The membership flag

class OCC.GeomFill.GeomFill_BoundWithSurf(*args)

Bases: OCC.GeomFill.GeomFill_Boundary

GetHandle()

GeomFill_BoundWithSurf_GetHandle(GeomFill_BoundWithSurf self) -> Handle_GeomFill_BoundWithSurf

thisown

The membership flag

class OCC.GeomFill.GeomFill_Boundary(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

Bounds()
Parameters:
  • First (float &) –
  • Last (float &) –
Return type:

void

D1()
Parameters:
  • U (float) –
  • P (gp_Pnt) –
  • V (gp_Vec) –
Return type:

void

D1Norm()
Parameters:
  • U (float) –
  • N (gp_Vec) –
  • DN (gp_Vec) –
Return type:

void

GetHandle()

GeomFill_Boundary_GetHandle(GeomFill_Boundary self) -> Handle_GeomFill_Boundary

HasNormals()
Return type:bool
IsDegenerated()
Return type:bool
Norm()
Parameters:U (float) –
Return type:gp_Vec
Points()
Parameters:
  • PFirst (gp_Pnt) –
  • PLast (gp_Pnt) –
Return type:

None

Reparametrize()
Parameters:
  • First (float) –
  • Last (float) –
  • HasDF (bool) –
  • HasDL (bool) –
  • DF (float) –
  • DL (float) –
  • Rev (bool) –
Return type:

void

Tol3d()
Return type:float
Parameters:Tol (float) –
Return type:None
Tolang()
Return type:float
Parameters:Tol (float) –
Return type:None
Value()
Parameters:U (float) –
Return type:gp_Pnt
thisown

The membership flag

class OCC.GeomFill.GeomFill_CircularBlendFunc(*args)

Bases: OCC.Approx.Approx_SweepFunction

GetHandle()

GeomFill_CircularBlendFunc_GetHandle(GeomFill_CircularBlendFunc self) -> Handle_GeomFill_CircularBlendFunc

thisown

The membership flag

class OCC.GeomFill.GeomFill_ConstantBiNormal(*args)

Bases: OCC.GeomFill.GeomFill_TrihedronLaw

GetHandle()

GeomFill_ConstantBiNormal_GetHandle(GeomFill_ConstantBiNormal self) -> Handle_GeomFill_ConstantBiNormal

thisown

The membership flag

class OCC.GeomFill.GeomFill_ConstrainedFilling(*args)

Bases: object

Boundary()
  • Returns the bound of index i after sort.
Parameters:I (Standard_Integer) –
Return type:Handle_GeomFill_Boundary
CheckApprox()
  • Computes values and normals along the bound I and compare them to the approx result curves (bound and tgte field) , draw the normals and tangents.
Parameters:I (Standard_Integer) –
Return type:None
CheckCoonsAlgPatch()
  • Computes the fields of tangents on 30 points along the bound I, these are not the constraint tangents but gives an idea of the coonsAlgPatch regularity.
Parameters:I (Standard_Integer) –
Return type:None
CheckResult()
  • Computes values and normals along the bound I on both constraint surface and result surface, draw the normals, and computes the max distance between values and the max angle between normals.
Parameters:I (Standard_Integer) –
Return type:None
CheckTgteField()
  • Computes the fields of tangents and normals on 30 points along the bound I, draw them, and computes the max dot product that must be near than 0.
Parameters:I (Standard_Integer) –
Return type:None
Eval()
  • Internal use for Advmath approximation call.
Parameters:
  • W (float) –
  • Ord (Standard_Integer) –
  • Result (float &) –
Return type:

int

Init()
Parameters:
  • B1 (Handle_GeomFill_Boundary &) –
  • B2 (Handle_GeomFill_Boundary &) –
  • B3 (Handle_GeomFill_Boundary &) –
  • NoCheck (bool) – default value is Standard_False
  • B1
  • B2
  • B3
  • NoCheck – default value is Standard_False
Return type:

None

Return type:

None

  • Constructs a BSpline surface filled from the series of boundaries B1, B2, B3 and, if need be, B4, which serve: - as path constraints - and optionally, as tangency constraints if they are GeomFill_BoundWithSurf curves. The boundaries may be given in any order: they are classified and if necessary, reversed and reparameterized. The surface will also respect the following constraints: - its degree will not be greater than the maximum degree defined at the time of construction of this framework, and - the maximum number of segments MaxSeg which BSpline surfaces can have
Parameters:
  • B1 (Handle_GeomFill_Boundary &) –
  • B2 (Handle_GeomFill_Boundary &) –
  • B3 (Handle_GeomFill_Boundary &) –
  • B4 (Handle_GeomFill_Boundary &) –
  • NoCheck (bool) – default value is Standard_False
Return type:

None

  • Constructs a BSpline surface filled from the series of boundaries B1, B2, B3 and, if need be, B4, which serve: - as path constraints - and optionally, as tangency constraints if they are GeomFill_BoundWithSurf curves. The boundaries may be given in any order: they are classified and if necessary, reversed and reparameterized. The surface will also respect the following constraints: - its degree will not be greater than the maximum degree defined at the time of construction of this framework, and - the maximum number of segments MaxSeg which BSpline surfaces can have
Parameters:
  • B1 (Handle_GeomFill_Boundary &) –
  • B2 (Handle_GeomFill_Boundary &) –
  • B3 (Handle_GeomFill_Boundary &) –
  • B4 (Handle_GeomFill_Boundary &) –
  • NoCheck (bool) – default value is Standard_False
Return type:

None

ReBuild()
  • Computes the new poles of the surface using the new blending functions set by several calls to SetDomain.
Return type:None
SetDomain()
  • Allows to modify domain on witch the blending function associated to the constrained boundary B will propag the influence of the field of tangency. Can be usefull to reduce influence of boundaries on whitch the Coons compatibility conditions are not respected. l is a relative value of the parametric range of B. Default value for l is 1 (used in Init). Warning: Must be called after Init with a constrained boundary used in the call to Init.
Parameters:
  • l (float) –
  • B (Handle_GeomFill_BoundWithSurf &) –
Return type:

None

Surface()
  • Returns the BSpline surface after computation of the fill by this framework.
Return type:Handle_Geom_BSplineSurface
thisown

The membership flag

class OCC.GeomFill.GeomFill_Coons(*args)

Bases: OCC.GeomFill.GeomFill_Filling

Init()
Parameters:
  • P1 (TColgp_Array1OfPnt) –
  • P2 (TColgp_Array1OfPnt) –
  • P3 (TColgp_Array1OfPnt) –
  • P4 (TColgp_Array1OfPnt) –
  • P1
  • P2
  • P3
  • P4
  • W1 (TColStd_Array1OfReal &) –
  • W2 (TColStd_Array1OfReal &) –
  • W3 (TColStd_Array1OfReal &) –
  • W4 (TColStd_Array1OfReal &) –
Return type:

None

Return type:

None

thisown

The membership flag

class OCC.GeomFill.GeomFill_CoonsAlgPatch(*args)

Bases: OCC.MMgt.MMgt_TShared

Bound()
Parameters:I (Standard_Integer) –
Return type:Handle_GeomFill_Boundary
Corner()
Parameters:I (Standard_Integer) –
Return type:gp_Pnt
D1U()
  • Computes the d/dU partial derivative on the algorithmic patch at parameters U and V.
Parameters:
  • U (float) –
  • V (float) –
Return type:

gp_Vec

D1V()
  • Computes the d/dV partial derivative on the algorithmic patch at parameters U and V.
Parameters:
  • U (float) –
  • V (float) –
Return type:

gp_Vec

DUV()
  • Computes the d2/dUdV partial derivative on the algorithmic patch made with linear blending functions at parameter U and V.
Parameters:
  • U (float) –
  • V (float) –
Return type:

gp_Vec

Func()
  • Give the blending functions.
Parameters:
  • f1 (Handle_Law_Function &) –
  • f2 (Handle_Law_Function &) –
  • I (Standard_Integer) –
Return type:

None

Return type:

Handle_Law_Function

GetHandle()

GeomFill_CoonsAlgPatch_GetHandle(GeomFill_CoonsAlgPatch self) -> Handle_GeomFill_CoonsAlgPatch

SetFunc()
  • Set the blending functions.
Parameters:
  • f1 (Handle_Law_Function &) –
  • f2 (Handle_Law_Function &) –
Return type:

None

Value()
  • Computes the value on the algorithmic patch at parameters U and V.
Parameters:
  • U (float) –
  • V (float) –
Return type:

gp_Pnt

thisown

The membership flag

class OCC.GeomFill.GeomFill_CornerState

Bases: object

Constraint()
Return type:None
DoKill()
Parameters:Scal (float) –
Return type:None
Gap()
Return type:float
Parameters:G (float) –
Return type:None
HasConstraint()
Return type:bool
IsToKill()
Parameters:Scal (float &) –
Return type:bool
NorAng()
Return type:float
Parameters:Ang (float) –
Return type:None
TgtAng()
Return type:float
Parameters:Ang (float) –
Return type:None
thisown

The membership flag

class OCC.GeomFill.GeomFill_CorrectedFrenet(*args)

Bases: OCC.GeomFill.GeomFill_TrihedronLaw

EvaluateBestMode()
  • Tries to define the best trihedron mode for the curve. It can be: - Frenet - CorrectedFrenet - DiscreteTrihedron Warning: the CorrectedFrenet must be constructed with option ForEvaluation = True, the curve must be set by method SetCurve.
Return type:GeomFill_Trihedron
GetHandle()

GeomFill_CorrectedFrenet_GetHandle(GeomFill_CorrectedFrenet self) -> Handle_GeomFill_CorrectedFrenet

thisown

The membership flag

class OCC.GeomFill.GeomFill_CurveAndTrihedron(*args)

Bases: OCC.GeomFill.GeomFill_LocationLaw

D0()
  • compute Location and 2d points
Parameters:
  • Param (float) –
  • M (gp_Mat) –
  • V (gp_Vec) –
Return type:

bool

  • compute Location and 2d points
Parameters:
  • Param (float) –
  • M (gp_Mat) –
  • V (gp_Vec) –
  • Poles2d (TColgp_Array1OfPnt2d) –
Return type:

bool

GetHandle()

GeomFill_CurveAndTrihedron_GetHandle(GeomFill_CurveAndTrihedron self) -> Handle_GeomFill_CurveAndTrihedron

thisown

The membership flag

class OCC.GeomFill.GeomFill_Curved(*args)

Bases: OCC.GeomFill.GeomFill_Filling

Init()
Parameters:
  • P1 (TColgp_Array1OfPnt) –
  • P2 (TColgp_Array1OfPnt) –
  • P3 (TColgp_Array1OfPnt) –
  • P4 (TColgp_Array1OfPnt) –
  • P1
  • P2
  • P3
  • P4
  • W1 (TColStd_Array1OfReal &) –
  • W2 (TColStd_Array1OfReal &) –
  • W3 (TColStd_Array1OfReal &) –
  • W4 (TColStd_Array1OfReal &) –
  • P1
  • P2
  • P3
  • P1
  • P2
  • P3
  • W1
  • W2
  • W3
  • P1
  • P2
  • P1
  • P2
  • W1
  • W2
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

thisown

The membership flag

class OCC.GeomFill.GeomFill_Darboux

Bases: OCC.GeomFill.GeomFill_TrihedronLaw

GetHandle()

GeomFill_Darboux_GetHandle(GeomFill_Darboux self) -> Handle_GeomFill_Darboux

thisown

The membership flag

class OCC.GeomFill.GeomFill_DegeneratedBound(*args)

Bases: OCC.GeomFill.GeomFill_Boundary

GetHandle()

GeomFill_DegeneratedBound_GetHandle(GeomFill_DegeneratedBound self) -> Handle_GeomFill_DegeneratedBound

thisown

The membership flag

class OCC.GeomFill.GeomFill_DiscreteTrihedron

Bases: OCC.GeomFill.GeomFill_TrihedronLaw

GetHandle()

GeomFill_DiscreteTrihedron_GetHandle(GeomFill_DiscreteTrihedron self) -> Handle_GeomFill_DiscreteTrihedron

Init()
Return type:None
thisown

The membership flag

class OCC.GeomFill.GeomFill_DraftTrihedron(*args)

Bases: OCC.GeomFill.GeomFill_TrihedronLaw

GetHandle()

GeomFill_DraftTrihedron_GetHandle(GeomFill_DraftTrihedron self) -> Handle_GeomFill_DraftTrihedron

SetAngle()
Parameters:Angle (float) –
Return type:None
thisown

The membership flag

class OCC.GeomFill.GeomFill_EvolvedSection(*args)

Bases: OCC.GeomFill.GeomFill_SectionLaw

GetHandle()

GeomFill_EvolvedSection_GetHandle(GeomFill_EvolvedSection self) -> Handle_GeomFill_EvolvedSection

thisown

The membership flag

class OCC.GeomFill.GeomFill_Filling

Bases: object

NbUPoles()
Return type:int
NbVPoles()
Return type:int
Poles()
Parameters:Poles (TColgp_Array2OfPnt) –
Return type:None
Weights()
Parameters:Weights (TColStd_Array2OfReal &) –
Return type:None
isRational()
Return type:bool
thisown

The membership flag

class OCC.GeomFill.GeomFill_Fixed(*args)

Bases: OCC.GeomFill.GeomFill_TrihedronLaw

GetHandle()

GeomFill_Fixed_GetHandle(GeomFill_Fixed self) -> Handle_GeomFill_Fixed

thisown

The membership flag

class OCC.GeomFill.GeomFill_Frenet

Bases: OCC.GeomFill.GeomFill_TrihedronLaw

GetHandle()

GeomFill_Frenet_GetHandle(GeomFill_Frenet self) -> Handle_GeomFill_Frenet

Init()
Return type:None
thisown

The membership flag

class OCC.GeomFill.GeomFill_FunctionDraft(*args)

Bases: object

Deriv2T()
  • returns the values <F> of the T2 derivatives for the parameter Param .
Parameters:
  • C (Handle_Adaptor3d_HCurve &) –
  • Param (float) –
  • W (float) –
  • d2N (gp_Vec) –
  • teta (float) –
  • F (math_Vector &) –
Return type:

bool

Deriv2X()
  • returns the values <T> of the X2 derivatives for the parameter Param .
Parameters:
  • X (math_Vector &) –
  • T (GeomFill_Tensor &) –
Return type:

bool

DerivT()
  • returns the values <F> of the T derivatives for the parameter Param .
Parameters:
  • C (Handle_Adaptor3d_HCurve &) –
  • Param (float) –
  • W (float) –
  • dN (gp_Vec) –
  • teta (float) –
  • F (math_Vector &) –
Return type:

bool

DerivTX()
  • returns the values <D> of the TX derivatives for the parameter Param .
Parameters:
  • dN (gp_Vec) –
  • teta (float) –
  • D (math_Matrix &) –
Return type:

bool

Derivatives()
  • returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

NbEquations()
  • returns the number of equations of the function.
Return type:int
NbVariables()
  • returns the number of variables of the function.
Return type:int
Value()
  • computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
  • returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.GeomFill.GeomFill_FunctionGuide(*args)

Bases: object

DerivT()
  • returns the values <F> of the T derivatives for the parameter Param .
Parameters:
  • X (math_Vector &) –
  • DCentre (gp_XYZ) –
  • DDir (gp_XYZ) –
  • DFDT (math_Vector &) –
Return type:

bool

Derivatives()
  • returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

NbEquations()
  • returns the number of equations of the function.
Return type:int
NbVariables()
  • returns the number of variables of the function.
Return type:int
SetParam()
Parameters:
  • Param (float) –
  • Centre (gp_Pnt) –
  • Dir (gp_XYZ) –
  • XDir (gp_XYZ) –
Return type:

None

Value()
  • computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
  • returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.GeomFill.GeomFill_Generator

Bases: OCC.GeomFill.GeomFill_Profiler

Surface()
Return type:Handle_Geom_Surface
thisown

The membership flag

class OCC.GeomFill.GeomFill_GuideTrihedronAC(*args)

Bases: OCC.GeomFill.GeomFill_TrihedronWithGuide

GetHandle()

GeomFill_GuideTrihedronAC_GetHandle(GeomFill_GuideTrihedronAC self) -> Handle_GeomFill_GuideTrihedronAC

thisown

The membership flag

class OCC.GeomFill.GeomFill_GuideTrihedronPlan(*args)

Bases: OCC.GeomFill.GeomFill_TrihedronWithGuide

GetHandle()

GeomFill_GuideTrihedronPlan_GetHandle(GeomFill_GuideTrihedronPlan self) -> Handle_GeomFill_GuideTrihedronPlan

thisown

The membership flag

class OCC.GeomFill.GeomFill_HArray1OfLocationLaw(*args)

Bases: OCC.MMgt.MMgt_TShared

Array1()
Return type:GeomFill_Array1OfLocationLaw
ChangeArray1()
Return type:GeomFill_Array1OfLocationLaw
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_GeomFill_LocationLaw
GetHandle()

GeomFill_HArray1OfLocationLaw_GetHandle(GeomFill_HArray1OfLocationLaw self) -> Handle_GeomFill_HArray1OfLocationLaw

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

None

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

The membership flag

class OCC.GeomFill.GeomFill_HArray1OfSectionLaw(*args)

Bases: OCC.MMgt.MMgt_TShared

Array1()
Return type:GeomFill_Array1OfSectionLaw
ChangeArray1()
Return type:GeomFill_Array1OfSectionLaw
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_GeomFill_SectionLaw
GetHandle()

GeomFill_HArray1OfSectionLaw_GetHandle(GeomFill_HArray1OfSectionLaw self) -> Handle_GeomFill_HArray1OfSectionLaw

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

None

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

The membership flag

class OCC.GeomFill.GeomFill_HSequenceOfAx2

Bases: OCC.MMgt.MMgt_TShared

Append()
Parameters:
  • anItem (gp_Ax2) –
  • aSequence (Handle_GeomFill_HSequenceOfAx2 &) –
Return type:

None

Return type:

None

ChangeSequence()
Return type:GeomFill_SequenceOfAx2
ChangeValue()
Parameters:anIndex (Standard_Integer) –
Return type:gp_Ax2
Clear()
Return type:None
Exchange()
Parameters:
  • anIndex (Standard_Integer) –
  • anOtherIndex (Standard_Integer) –
Return type:

None

GetHandle()

GeomFill_HSequenceOfAx2_GetHandle(GeomFill_HSequenceOfAx2 self) -> Handle_GeomFill_HSequenceOfAx2

InsertAfter()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (gp_Ax2) –
  • anIndex
  • aSequence (Handle_GeomFill_HSequenceOfAx2 &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (gp_Ax2) –
  • anIndex
  • aSequence (Handle_GeomFill_HSequenceOfAx2 &) –
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Length()
Return type:int
Prepend()
Parameters:
  • anItem (gp_Ax2) –
  • aSequence (Handle_GeomFill_HSequenceOfAx2 &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • anIndex (Standard_Integer) –
  • fromIndex (Standard_Integer) –
  • toIndex (Standard_Integer) –
Return type:

None

Return type:

None

Reverse()
Return type:None
Sequence()
Return type:GeomFill_SequenceOfAx2
SetValue()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (gp_Ax2) –
Return type:

None

ShallowCopy()
Return type:Handle_GeomFill_HSequenceOfAx2
Split()
Parameters:anIndex (Standard_Integer) –
Return type:Handle_GeomFill_HSequenceOfAx2
Value()
Parameters:anIndex (Standard_Integer) –
Return type:gp_Ax2
thisown

The membership flag

class OCC.GeomFill.GeomFill_Line(*args)

Bases: OCC.MMgt.MMgt_TShared

GetHandle()

GeomFill_Line_GetHandle(GeomFill_Line self) -> Handle_GeomFill_Line

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

The membership flag

class OCC.GeomFill.GeomFill_LocFunction(*args)

Bases: object

D0()
  • compute the section for v = param
Parameters:
  • Param (float) –
  • First (float) –
  • Last (float) –
Return type:

bool

D1()
  • compute the first derivative in v direction of the section for v = param
Parameters:
  • Param (float) –
  • First (float) –
  • Last (float) –
Return type:

bool

D2()
  • compute the second derivative in v direction of the section for v = param
Parameters:
  • Param (float) –
  • First (float) –
  • Last (float) –
Return type:

bool

DN()
Parameters:
  • Param (float) –
  • First (float) –
  • Last (float) –
  • Order (Standard_Integer) –
  • Result (float &) –
  • Ier (Standard_Integer &) –
Return type:

None

thisown

The membership flag

class OCC.GeomFill.GeomFill_LocationDraft(*args)

Bases: OCC.GeomFill.GeomFill_LocationLaw

D0()
  • compute Location
Parameters:
  • Param (float) –
  • M (gp_Mat) –
  • V (gp_Vec) –
Return type:

bool

  • compute Location and 2d points
Parameters:
  • Param (float) –
  • M (gp_Mat) –
  • V (gp_Vec) –
  • Poles2d (TColgp_Array1OfPnt2d) –
Return type:

bool

Direction()
Return type:gp_Dir
GetHandle()

GeomFill_LocationDraft_GetHandle(GeomFill_LocationDraft self) -> Handle_GeomFill_LocationDraft

IsIntersec()
  • Say if the generatrice interset the surface
Return type:bool
SetAngle()
Parameters:Angle (float) –
Return type:None
SetStopSurf()
Parameters:Surf (Handle_Adaptor3d_HSurface &) –
Return type:None
thisown

The membership flag

class OCC.GeomFill.GeomFill_LocationGuide(*args)

Bases: OCC.GeomFill.GeomFill_LocationLaw

ComputeAutomaticLaw()
Parameters:ParAndRad (Handle_TColgp_HArray1OfPnt2d) –
Return type:GeomFill_PipeError
D0()
  • compute Location
Parameters:
  • Param (float) –
  • M (gp_Mat) –
  • V (gp_Vec) –
Return type:

bool

  • compute Location and 2d points
Parameters:
  • Param (float) –
  • M (gp_Mat) –
  • V (gp_Vec) –
  • Poles2d (TColgp_Array1OfPnt2d) –
Return type:

bool

EraseRotation()
Return type:None
GetHandle()

GeomFill_LocationGuide_GetHandle(GeomFill_LocationGuide self) -> Handle_GeomFill_LocationGuide

Guide()
Return type:Handle_Adaptor3d_HCurve
Section()
Return type:Handle_Geom_Curve
Set()
Parameters:
  • Section (Handle_GeomFill_SectionLaw &) –
  • rotat (bool) –
  • SFirst (float) –
  • SLast (float) –
  • PrecAngle (float) –
  • LastAngle (float &) –
Return type:

None

SetOrigine()
Parameters:
  • Param1 (float) –
  • Param2 (float) –
Return type:

None

thisown

The membership flag

class OCC.GeomFill.GeomFill_LocationLaw(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

Copy()
Return type:Handle_GeomFill_LocationLaw
D0()
  • compute Location
Parameters:
  • Param (float) –
  • M (gp_Mat) –
  • V (gp_Vec) –
Return type:

bool

  • compute Location and 2d points
Parameters:
  • Param (float) –
  • M (gp_Mat) –
  • V (gp_Vec) –
  • Poles2d (TColgp_Array1OfPnt2d) –
Return type:

bool

D1()
  • compute location 2d points and associated first derivatives. Warning : It used only for C1 or C2 aproximation
Parameters:
  • Param (float) –
  • M (gp_Mat) –
  • V (gp_Vec) –
  • DM (gp_Mat) –
  • DV (gp_Vec) –
  • Poles2d (TColgp_Array1OfPnt2d) –
  • DPoles2d (TColgp_Array1OfVec2d) –
Return type:

bool

D2()
  • compute location 2d points and associated first and seconde derivatives. Warning : It used only for C2 aproximation
Parameters:
  • Param (float) –
  • M (gp_Mat) –
  • V (gp_Vec) –
  • DM (gp_Mat) –
  • DV (gp_Vec) –
  • D2M (gp_Mat) –
  • D2V (gp_Vec) –
  • Poles2d (TColgp_Array1OfPnt2d) –
  • DPoles2d (TColgp_Array1OfVec2d) –
  • D2Poles2d (TColgp_Array1OfVec2d) –
Return type:

bool

ErrorStatus()
  • //!Give a status to the Law Returns PipeOk (default implementation)
Return type:GeomFill_PipeError
GetAverageLaw()
  • Get average value of M(t) and V(t) it is usfull to make fast approximation of rational surfaces.
Parameters:
  • AM (gp_Mat) –
  • AV (gp_Vec) –
Return type:

void

GetCurve()
Return type:Handle_Adaptor3d_HCurve
GetDomain()
  • Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method
Parameters:
  • First (float &) –
  • Last (float &) –
Return type:

void

GetHandle()

GeomFill_LocationLaw_GetHandle(GeomFill_LocationLaw self) -> Handle_GeomFill_LocationLaw

GetInterval()
  • Gets the bounds of the parametric interval on the function
Parameters:
  • First (float &) –
  • Last (float &) –
Return type:

void

GetMaximalNorm()
  • Get the maximum Norm of the matrix-location part. It is usful to find an good Tolerance to approx M(t).
Return type:float
HasFirstRestriction()
  • Say if the first restriction is defined in this class. If it is true the first element of poles array in D0,D1,D2... Correspond to this restriction. Returns Standard_False (default implementation)
Return type:bool
HasLastRestriction()
  • Say if the last restriction is defined in this class. If it is true the last element of poles array in D0,D1,D2... Correspond to this restriction. Returns Standard_False (default implementation)
Return type:bool
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

IsRotation()
  • Say if the Location Law, is a rotation of Location The default implementation is ‘ returns False ‘.
Parameters:Error (float &) –
Return type:bool
IsTranslation()
  • Say if the Location Law, is an translation of Location The default implementation is ‘ returns False ‘.
Parameters:Error (float &) –
Return type:bool
Nb2dCurves()
  • get the number of 2d curves (Restrictions + Traces) 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

Rotation()
Parameters:Center (gp_Pnt) –
Return type:void
SetCurve()
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:void
SetInterval()
  • Sets the bounds of the parametric interval on the function 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 The default implementation make nothing.
Parameters:
  • Tol3d (float) –
  • Tol2d (float) –
Return type:

void

SetTrsf()
  • Set a transformation Matrix like the law M(t) become Mat * M(t)
Parameters:Transfo (gp_Mat) –
Return type:void
TraceNumber()
  • Give the number of trace (Curves 2d wich are not restriction) Returns 0 (default implementation)
Return type:int
thisown

The membership flag

class OCC.GeomFill.GeomFill_Pipe(*args)

Bases: object

ErrorOnSurf()
  • Returns the approximation’s error. if the Surface is plane, cylinder ... this error can be 0.
Return type:float
ExchangeUV()
  • The u parametric direction of the surface constructed by this algorithm usually corresponds to the evolution along the path and the v parametric direction corresponds to the evolution along the section(s). However, this rule is not respected when constructing certain specific Geom surfaces (typically cylindrical surfaces, surfaces of revolution, etc.) for which the parameterization is inversed. The ExchangeUV function checks for this, and returns true in all these specific cases. Warning Do not use this function before the surface is built.
Return type:bool
GenerateParticularCase()
  • Sets a flag to try to create as many planes, cylinder,... as possible. Default value is <Standard_False>.
Parameters:B (bool) –
Return type:None
  • Returns the flag.
Return type:bool
Init()
Parameters:
  • Path (Handle_Geom_Curve &) –
  • Radius (float) –
  • Path
  • FirstSect (Handle_Geom_Curve &) –
  • Option (GeomFill_Trihedron) – default value is GeomFill_IsCorrectedFrenet
  • Path
  • FirstSect
  • Option – default value is GeomFill_IsCorrectedFrenet
  • Path
  • Support (Handle_Geom_Surface &) –
  • FirstSect
  • Path
  • FirstSect
  • Dir (gp_Dir) –
  • Path
  • FirstSect
  • LastSect (Handle_Geom_Curve &) –
  • Path
  • NSections (TColGeom_SequenceOfCurve &) –
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

  • Create a pipe with a constant radius with 2 guide-line.
Parameters:
  • Path (Handle_Adaptor3d_HCurve &) –
  • Curve1 (Handle_Adaptor3d_HCurve &) –
  • Curve2 (Handle_Adaptor3d_HCurve &) –
  • Radius (float) –
Return type:

None

  • Initializes this pipe algorithm to build the following surface: - a pipe with a constant circular section of radius Radius along the path Path, or - a pipe with constant section FirstSect along the path Path, or - a pipe where the section evolves from FirstSect to LastSect along the path Path. Use the function Perform to build the surface. Note: a description of the resulting surface is given under Constructors.
Parameters:
  • Path (Handle_Geom_Curve &) –
  • Guide (Handle_Adaptor3d_HCurve &) –
  • FirstSect (Handle_Geom_Curve &) –
  • ByACR (bool) –
  • rotat (bool) –
Return type:

None

Perform()
  • Builds the pipe defined at the time of initialization of this algorithm. A description of the resulting surface is given under Constructors. If WithParameters (defaulted to false) is set to true, the approximation algorithm (used only in the general case of construction of a BSpline surface) builds the surface with a u parameter corresponding to the one of the path. Exceptions Standard_ConstructionError if a surface cannot be constructed from the data. Warning: It is the old Perform method, the next methode is recommended.
Parameters:
  • WithParameters (bool) – default value is Standard_False
  • myPolynomial (bool) – default value is Standard_False
Return type:

None

  • Builds the pipe defined at the time of initialization of this algorithm. A description of the resulting surface is given under Constructors. If WithParameters (defaulted to false) is set to true, the approximation algorithm (used only in the general case of construction of a BSpline surface) builds the surface with a u parameter corresponding to the one of the path. Exceptions Standard_ConstructionError if a surface cannot be constructed from the data. Warning: It is the old Perform method, the next methode is recommended.
Parameters:
  • WithParameters (bool) – default value is Standard_False
  • myPolynomial (bool) – default value is Standard_False
Return type:

None

  • Builds the pipe defined at the time of initialization of this algorithm. A description of the resulting surface is given under Constructors. If WithParameters (defaulted to false) is set to true, the approximation algorithm (used only in the general case of construction of a BSpline surface) builds the surface with a u parameter corresponding to the one of the path. Exceptions Standard_ConstructionError if a surface cannot be constructed from the data. Warning: It is the old Perform method, the next methode is recommended.
Parameters:
  • WithParameters (bool) – default value is Standard_False
  • myPolynomial (bool) – default value is Standard_False
Return type:

None

  • detects the particular cases. And compute the surface. if none particular case is detected we make an approximation with respect of the Tolerance <Tol>, the continuty <Conti>, the maximum degree <MaxDegree>, the maximum number of span <NbMaxSegment> and the spine parametrization. If we can’t create a surface with the data
Parameters:
  • Tol (float) –
  • Polynomial (bool) –
  • Conti (GeomAbs_Shape) – default value is GeomAbs_C1
  • MaxDegree (Standard_Integer) – default value is 11
  • NbMaxSegment (Standard_Integer) – default value is 30
Return type:

None

  • detects the particular cases. And compute the surface. if none particular case is detected we make an approximation with respect of the Tolerance <Tol>, the continuty <Conti>, the maximum degree <MaxDegree>, the maximum number of span <NbMaxSegment> and the spine parametrization. If we can’t create a surface with the data
Parameters:
  • Tol (float) –
  • Polynomial (bool) –
  • Conti (GeomAbs_Shape) – default value is GeomAbs_C1
  • MaxDegree (Standard_Integer) – default value is 11
  • NbMaxSegment (Standard_Integer) – default value is 30
Return type:

None

  • detects the particular cases. And compute the surface. if none particular case is detected we make an approximation with respect of the Tolerance <Tol>, the continuty <Conti>, the maximum degree <MaxDegree>, the maximum number of span <NbMaxSegment> and the spine parametrization. If we can’t create a surface with the data
Parameters:
  • Tol (float) –
  • Polynomial (bool) –
  • Conti (GeomAbs_Shape) – default value is GeomAbs_C1
  • MaxDegree (Standard_Integer) – default value is 11
  • NbMaxSegment (Standard_Integer) – default value is 30
Return type:

None

  • detects the particular cases. And compute the surface. if none particular case is detected we make an approximation with respect of the Tolerance <Tol>, the continuty <Conti>, the maximum degree <MaxDegree>, the maximum number of span <NbMaxSegment> and the spine parametrization. If we can’t create a surface with the data
Parameters:
  • Tol (float) –
  • Polynomial (bool) –
  • Conti (GeomAbs_Shape) – default value is GeomAbs_C1
  • MaxDegree (Standard_Integer) – default value is 11
  • NbMaxSegment (Standard_Integer) – default value is 30
Return type:

None

Surface()
  • Returns the surface built by this algorithm. Warning Do not use this function before the surface is built (in this case the function will return a null handle).
Return type:Handle_Geom_Surface
thisown

The membership flag

class OCC.GeomFill.GeomFill_PlanFunc(*args)

Bases: object

D2()
Parameters:
  • X (float) –
  • F (float &) –
  • D1 (float &) –
  • D2 (float &) –
Return type:

None

D2E()
Parameters:
  • X (float) –
  • DP (gp_Vec) –
  • D2P (gp_Vec) –
  • DV (gp_Vec) –
  • D2V (gp_Vec) –
  • DFDT (float &) –
  • D2FDT2 (float &) –
  • D2FDTDX (float &) –
Return type:

None

DEDT()
Parameters:
  • X (float) –
  • DP (gp_Vec) –
  • DV (gp_Vec) –
  • DF (float &) –
Return type:

None

Derivative()
  • computes the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
Parameters:
  • X (float) –
  • D (float &) –
Return type:

bool

Value()
  • computes the value <F>of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
Parameters:
  • X (float) –
  • F (float &) –
Return type:

bool

Values()
  • computes the value <F> and the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
Parameters:
  • X (float) –
  • F (float &) –
  • D (float &) –
Return type:

bool

thisown

The membership flag

class OCC.GeomFill.GeomFill_PolynomialConvertor

Bases: object

Init()
Return type:None
Initialized()
  • say if <self> is Initialized
Return type:bool
Section()
Parameters:
  • FirstPnt (gp_Pnt) –
  • Center (gp_Pnt) –
  • Dir (gp_Vec) –
  • Angle (float) –
  • Poles (TColgp_Array1OfPnt) –
  • FirstPnt
  • DFirstPnt (gp_Vec) –
  • Center
  • DCenter (gp_Vec) –
  • Dir
  • DDir (gp_Vec) –
  • Angle
  • DAngle (float) –
  • Poles
  • DPoles (TColgp_Array1OfVec) –
  • FirstPnt
  • DFirstPnt
  • D2FirstPnt (gp_Vec) –
  • Center
  • DCenter
  • D2Center (gp_Vec) –
  • Dir
  • DDir
  • D2Dir (gp_Vec) –
  • Angle
  • DAngle
  • D2Angle (float) –
  • Poles
  • DPoles
  • D2Poles (TColgp_Array1OfVec) –
Return type:

None

Return type:

None

Return type:

None

thisown

The membership flag

class OCC.GeomFill.GeomFill_Profiler

Bases: object

AddCurve()
Parameters:Curve (Handle_Geom_Curve &) –
Return type:None
Curve()
Parameters:Index (Standard_Integer) –
Return type:Handle_Geom_Curve
Degree()
  • Raises if not yet perform
Return type:int
Delete()
Return type:void
IsPeriodic()
Return type:bool
KnotsAndMults()
  • Raises if not yet perform Raises if the lengthes of <Knots> and <Mults> are not equal to NbKnots().
Parameters:
  • Knots (TColStd_Array1OfReal &) –
  • Mults (TColStd_Array1OfInteger &) –
Return type:

None

NbKnots()
  • Raises if not yet perform
Return type:int
NbPoles()
  • Raises if not yet perform
Return type:int
Perform()
  • Converts all curves to BSplineCurves. Set them to the common profile. <PTol> is used to compare 2 knots.
Parameters:PTol (float) –
Return type:void
Poles()
  • returns in <Poles> the poles of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] if the length of <Poles> is not equal to NbPoles().
Parameters:
  • Index (Standard_Integer) –
  • Poles (TColgp_Array1OfPnt) –
Return type:

None

Weights()
  • returns in <Weights> the weights of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] or if the length of <Weights> is not equal to NbPoles().
Parameters:
  • Index (Standard_Integer) –
  • Weights (TColStd_Array1OfReal &) –
Return type:

None

thisown

The membership flag

class OCC.GeomFill.GeomFill_QuasiAngularConvertor

Bases: object

Init()
Return type:None
Initialized()
  • say if <self> is Initialized
Return type:bool
Section()
Parameters:
  • FirstPnt (gp_Pnt) –
  • Center (gp_Pnt) –
  • Dir (gp_Vec) –
  • Angle (float) –
  • Poles (TColgp_Array1OfPnt) –
  • Weights (TColStd_Array1OfReal &) –
  • FirstPnt
  • DFirstPnt (gp_Vec) –
  • Center
  • DCenter (gp_Vec) –
  • Dir
  • DDir (gp_Vec) –
  • Angle
  • DAngle (float) –
  • Poles
  • DPoles (TColgp_Array1OfVec) –
  • Weights
  • DWeights (TColStd_Array1OfReal &) –
  • FirstPnt
  • DFirstPnt
  • D2FirstPnt (gp_Vec) –
  • Center
  • DCenter
  • D2Center (gp_Vec) –
  • Dir
  • DDir
  • D2Dir (gp_Vec) –
  • Angle
  • DAngle
  • D2Angle (float) –
  • Poles
  • DPoles
  • D2Poles (TColgp_Array1OfVec) –
  • Weights
  • DWeights
  • D2Weights (TColStd_Array1OfReal &) –
Return type:

None

Return type:

None

Return type:

None

thisown

The membership flag

class OCC.GeomFill.GeomFill_SectionGenerator

Bases: OCC.GeomFill.GeomFill_Profiler

GetShape()
Parameters:
  • NbPoles (Standard_Integer &) –
  • NbKnots (Standard_Integer &) –
  • Degree (Standard_Integer &) –
  • NbPoles2d (Standard_Integer &) –
Return type:

None

Knots()
Parameters:TKnots (TColStd_Array1OfReal &) –
Return type:None
Mults()
Parameters:TMults (TColStd_Array1OfInteger &) –
Return type:None
Parameter()
  • Returns the parameter of Section<P>, to impose it for the approximation.
Parameters:P (Standard_Integer) –
Return type:float
Section()
  • Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters:
  • P (Standard_Integer) –
  • Poles (TColgp_Array1OfPnt) –
  • DPoles (TColgp_Array1OfVec) –
  • Poles2d (TColgp_Array1OfPnt2d) –
  • DPoles2d (TColgp_Array1OfVec2d) –
  • Weigths (TColStd_Array1OfReal &) –
  • DWeigths (TColStd_Array1OfReal &) –
  • P
  • Poles
  • Poles2d
  • Weigths
Return type:

bool

Return type:

None

SetParam()
Parameters:Params (Handle_TColStd_HArray1OfReal &) –
Return type:None
thisown

The membership flag

class OCC.GeomFill.GeomFill_SectionLaw(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

BSplineSurface()
  • give if possible an bspline Surface, like iso-v are the section. If it is not possible this methode have to get an Null Surface. It is the default implementation.
Return type:Handle_Geom_BSplineSurface
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
CirclSection()
  • Return the circle section at parameter <Param>, if <self> a IsConicalLaw
Parameters:Param (float) –
Return type:Handle_Geom_Curve
ConstantSection()
  • Return a copy of the constant Section, if me IsConstant
Return type:Handle_Geom_Curve
D0()
  • compute the section for v = param
Parameters:
  • Param (float) –
  • Poles (TColgp_Array1OfPnt) –
  • 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) –
  • Poles (TColgp_Array1OfPnt) –
  • DPoles (TColgp_Array1OfVec) –
  • 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) –
  • Poles (TColgp_Array1OfPnt) –
  • DPoles (TColgp_Array1OfVec) –
  • D2Poles (TColgp_Array1OfVec) –
  • Weigths (TColStd_Array1OfReal &) –
  • DWeigths (TColStd_Array1OfReal &) –
  • D2Weigths (TColStd_Array1OfReal &) –
Return type:

bool

GetDomain()
  • Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method
Parameters:
  • First (float &) –
  • Last (float &) –
Return type:

void

GetHandle()

GeomFill_SectionLaw_GetHandle(GeomFill_SectionLaw self) -> Handle_GeomFill_SectionLaw

GetInterval()
  • Gets the bounds of the parametric interval on the function
Parameters:
  • First (float &) –
  • Last (float &) –
Return type:

void

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 tolerances associated at each poles 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

IsConicalLaw()
  • Returns True if all section are circle, with same plane,same center and linear radius evolution Return False by Default.
Parameters:Error (float &) –
Return type:bool
IsConstant()
  • Say if all sections are equals
Parameters:Error (float &) –
Return type:bool
IsRational()
  • Returns if the sections are rationnal or not
Return type:bool
IsUPeriodic()
  • Returns if the sections are periodic or not
Return type:bool
IsVPeriodic()
  • Returns if law is periodic 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
NbIntervals()
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters:S (GeomAbs_Shape) –
Return type:int
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 function 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 The default implementation make nothing.
Parameters:
  • Tol3d (float) –
  • Tol2d (float) –
Return type:

void

thisown

The membership flag

class OCC.GeomFill.GeomFill_SectionPlacement(*args)

Bases: object

Angle()
Return type:float
Distance()
Return type:float
IsDone()
Return type:bool
ModifiedSection()
  • Compute the Section, in the coordinate syteme given by the Location Law. To have the Normal to section equal to the Location Law Normal. If <WithTranslation> contact beetween <Section> and <Path> is forced.
Parameters:WithTranslation (bool) –
Return type:Handle_Geom_Curve
ParameterOnPath()
Return type:float
ParameterOnSection()
Return type:float
Perform()
Parameters:
  • Tol (float) –
  • Path (Handle_Adaptor3d_HCurve &) –
  • Tol
  • ParamOnPath (float) –
  • Tol
Return type:

None

Return type:

None

Return type:

None

Section()
  • Compute the Section, in the coordinate syteme given by the Location Law. If <WithTranslation> contact beetween <Section> and <Path> is forced.
Parameters:WithTranslation (bool) –
Return type:Handle_Geom_Curve
SetLocation()
  • To change the section Law
Parameters:L (Handle_GeomFill_LocationLaw &) –
Return type:None
Transformation()
Parameters:
  • WithTranslation (bool) –
  • WithCorrection (bool) – default value is Standard_False
  • WithTranslation
  • WithCorrection – default value is Standard_False
Return type:

gp_Trsf

Return type:

gp_Trsf

thisown

The membership flag

class OCC.GeomFill.GeomFill_SequenceNodeOfSequenceOfAx2(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

GeomFill_SequenceNodeOfSequenceOfAx2_GetHandle(GeomFill_SequenceNodeOfSequenceOfAx2 self) -> Handle_GeomFill_SequenceNodeOfSequenceOfAx2

Value()
Return type:gp_Ax2
thisown

The membership flag

class OCC.GeomFill.GeomFill_SequenceNodeOfSequenceOfTrsf(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

GeomFill_SequenceNodeOfSequenceOfTrsf_GetHandle(GeomFill_SequenceNodeOfSequenceOfTrsf self) -> Handle_GeomFill_SequenceNodeOfSequenceOfTrsf

Value()
Return type:gp_Trsf
thisown

The membership flag

class OCC.GeomFill.GeomFill_SequenceOfAx2

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (gp_Ax2) –
  • S (GeomFill_SequenceOfAx2 &) –
Return type:

None

Return type:

None

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

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (gp_Ax2) –
  • Index
  • S (GeomFill_SequenceOfAx2 &) –
Return type:

None

Return type:

None

Last()
Return type:gp_Ax2
Prepend()
Parameters:
  • T (gp_Ax2) –
  • S (GeomFill_SequenceOfAx2 &) –
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 (GeomFill_SequenceOfAx2 &) –
Return type:GeomFill_SequenceOfAx2
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (gp_Ax2) –
Return type:

None

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

None

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

The membership flag

class OCC.GeomFill.GeomFill_SequenceOfTrsf

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (gp_Trsf) –
  • S (GeomFill_SequenceOfTrsf &) –
Return type:

None

Return type:

None

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

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (gp_Trsf) –
  • Index
  • S (GeomFill_SequenceOfTrsf &) –
Return type:

None

Return type:

None

Last()
Return type:gp_Trsf
Prepend()
Parameters:
  • T (gp_Trsf) –
  • S (GeomFill_SequenceOfTrsf &) –
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 (GeomFill_SequenceOfTrsf &) –
Return type:GeomFill_SequenceOfTrsf
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (gp_Trsf) –
Return type:

None

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

None

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

The membership flag

class OCC.GeomFill.GeomFill_SimpleBound(*args)

Bases: OCC.GeomFill.GeomFill_Boundary

GetHandle()

GeomFill_SimpleBound_GetHandle(GeomFill_SimpleBound self) -> Handle_GeomFill_SimpleBound

thisown

The membership flag

class OCC.GeomFill.GeomFill_SnglrFunc(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Curve

SetRatio()
Parameters:Ratio (float) –
Return type:None
thisown

The membership flag

class OCC.GeomFill.GeomFill_Stretch(*args)

Bases: OCC.GeomFill.GeomFill_Filling

Init()
Parameters:
  • P1 (TColgp_Array1OfPnt) –
  • P2 (TColgp_Array1OfPnt) –
  • P3 (TColgp_Array1OfPnt) –
  • P4 (TColgp_Array1OfPnt) –
  • P1
  • P2
  • P3
  • P4
  • W1 (TColStd_Array1OfReal &) –
  • W2 (TColStd_Array1OfReal &) –
  • W3 (TColStd_Array1OfReal &) –
  • W4 (TColStd_Array1OfReal &) –
Return type:

None

Return type:

None

thisown

The membership flag

class OCC.GeomFill.GeomFill_Sweep(*args)

Bases: object

Build()
  • Build the Sweeep Surface ApproxStyle defines Approximation Strategy - GeomFill_Section : The composed Function : Location X Section is directly approximed. - GeomFill_Location : The location law is approximed, and the SweepSurface is build algebric composition of approximed location law and section law This option is Ok, if Section.Surface() methode is effective. 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 raise If Domain are infinite or Profile not Setted.
Parameters:
  • Section (Handle_GeomFill_SectionLaw &) –
  • Methode (GeomFill_ApproxStyle) – default value is GeomFill_Location
  • Continuity (GeomAbs_Shape) – default value is GeomAbs_C2
  • Degmax (Standard_Integer) – default value is 10
  • Segmax (Standard_Integer) – default value is 30
Return type:

None

  • Build the Sweeep Surface ApproxStyle defines Approximation Strategy - GeomFill_Section : The composed Function : Location X Section is directly approximed. - GeomFill_Location : The location law is approximed, and the SweepSurface is build algebric composition of approximed location law and section law This option is Ok, if Section.Surface() methode is effective. 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 raise If Domain are infinite or Profile not Setted.
Parameters:
  • Section (Handle_GeomFill_SectionLaw &) –
  • Methode (GeomFill_ApproxStyle) – default value is GeomFill_Location
  • Continuity (GeomAbs_Shape) – default value is GeomAbs_C2
  • Degmax (Standard_Integer) – default value is 10
  • Segmax (Standard_Integer) – default value is 30
Return type:

None

  • Build the Sweeep Surface ApproxStyle defines Approximation Strategy - GeomFill_Section : The composed Function : Location X Section is directly approximed. - GeomFill_Location : The location law is approximed, and the SweepSurface is build algebric composition of approximed location law and section law This option is Ok, if Section.Surface() methode is effective. 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 raise If Domain are infinite or Profile not Setted.
Parameters:
  • Section (Handle_GeomFill_SectionLaw &) –
  • Methode (GeomFill_ApproxStyle) – default value is GeomFill_Location
  • Continuity (GeomAbs_Shape) – default value is GeomAbs_C2
  • Degmax (Standard_Integer) – default value is 10
  • Segmax (Standard_Integer) – default value is 30
Return type:

None

  • Build the Sweeep Surface ApproxStyle defines Approximation Strategy - GeomFill_Section : The composed Function : Location X Section is directly approximed. - GeomFill_Location : The location law is approximed, and the SweepSurface is build algebric composition of approximed location law and section law This option is Ok, if Section.Surface() methode is effective. 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 raise If Domain are infinite or Profile not Setted.
Parameters:
  • Section (Handle_GeomFill_SectionLaw &) –
  • Methode (GeomFill_ApproxStyle) – default value is GeomFill_Location
  • Continuity (GeomAbs_Shape) – default value is GeomAbs_C2
  • Degmax (Standard_Integer) – default value is 10
  • Segmax (Standard_Integer) – default value is 30
Return type:

None

  • Build the Sweeep Surface ApproxStyle defines Approximation Strategy - GeomFill_Section : The composed Function : Location X Section is directly approximed. - GeomFill_Location : The location law is approximed, and the SweepSurface is build algebric composition of approximed location law and section law This option is Ok, if Section.Surface() methode is effective. 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 raise If Domain are infinite or Profile not Setted.
Parameters:
  • Section (Handle_GeomFill_SectionLaw &) –
  • Methode (GeomFill_ApproxStyle) – default value is GeomFill_Location
  • Continuity (GeomAbs_Shape) – default value is GeomAbs_C2
  • Degmax (Standard_Integer) – default value is 10
  • Segmax (Standard_Integer) – default value is 30
Return type:

None

ErrorOnRestriction()
  • Gets the Approximation error.
Parameters:
  • IsFirst (bool) –
  • UError (float &) –
  • VError (float &) –
Return type:

None

ErrorOnSurface()
  • Gets the Approximation error.
Return type:float
ErrorOnTrace()
  • Gets the Approximation error.
Parameters:
  • IndexOfTrace (Standard_Integer) –
  • UError (float &) –
  • VError (float &) –
Return type:

None

ExchangeUV()
  • returns true if sections are U-Iso This can be produce in some cases when <WithKpart> is True.
Return type:bool
IsDone()
  • Tells if the Surface is Buildt.
Return type:bool
NumberOfTrace()
Return type:int
Restriction()
Parameters:IsFirst (bool) –
Return type:Handle_Geom2d_Curve
SetDomain()
  • Set parametric information [<First>, <Last>] Sets the parametric bound of the sweeping surface to build. <SectionFirst>, <SectionLast> gives coresponding bounds parameter on the section law of <First> and <Last> V-Iso on Sweeping Surface S(u,v) is defined by Location(v) and Section(w) where w = SectionFirst + (v - First) / (Last-First) * (SectionLast - SectionFirst) By default w = v, and First and Last are given by First and Last parameter stored in LocationLaw.
Parameters:
  • First (float) –
  • Last (float) –
  • SectionFirst (float) –
  • SectionLast (float) –
Return type:

None

SetForceApproxC1()
  • Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.
Parameters:ForceApproxC1 (bool) –
Return type:None
SetTolerance()
  • Set Approximation Tolerance 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 method define in <LocationLaw> 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
Parameters:
  • Tol3d (float) –
  • BoundTol (float) – default value is 1.0
  • Tol2d (float) – default value is 1.0e-5
  • TolAngular (float) – default value is 1.0
Return type:

None

  • Set Approximation Tolerance 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 method define in <LocationLaw> 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
Parameters:
  • Tol3d (float) –
  • BoundTol (float) – default value is 1.0
  • Tol2d (float) – default value is 1.0e-5
  • TolAngular (float) – default value is 1.0
Return type:

None

  • Set Approximation Tolerance 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 method define in <LocationLaw> 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
Parameters:
  • Tol3d (float) –
  • BoundTol (float) – default value is 1.0
  • Tol2d (float) – default value is 1.0e-5
  • TolAngular (float) – default value is 1.0
Return type:

None

  • Set Approximation Tolerance 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 method define in <LocationLaw> 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
Parameters:
  • Tol3d (float) –
  • BoundTol (float) – default value is 1.0
  • Tol2d (float) – default value is 1.0e-5
  • TolAngular (float) – default value is 1.0
Return type:

None

Surface()
Return type:Handle_Geom_Surface
Trace()
Parameters:IndexOfTrace (Standard_Integer) –
Return type:Handle_Geom2d_Curve
UReversed()
  • returns true if Parametrisation sens in U is inverse of parametrisation sens of section (or of path if ExchangeUV)
Return type:bool
VReversed()
  • returns true if Parametrisation sens in V is inverse of parametrisation sens of path (or of section if ExchangeUV)
Return type:bool
thisown

The membership flag

class OCC.GeomFill.GeomFill_SweepFunction(*args)

Bases: OCC.Approx.Approx_SweepFunction

GetHandle()

GeomFill_SweepFunction_GetHandle(GeomFill_SweepFunction self) -> Handle_GeomFill_SweepFunction

thisown

The membership flag

class OCC.GeomFill.GeomFill_Tensor(*args)

Bases: object

ChangeValue()
  • accesses (in read or write mode) the value of index <Row>, <Col> and <Mat> of a Tensor. An exception is raised if <Row>, <Col> or <Mat> are not in the correct range.
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
  • Mat (Standard_Integer) –
Return type:

float

Init()
  • //!Initialize all the elements of a Tensor to InitialValue.
Parameters:InitialValue (float) –
Return type:None
Multiply()
Parameters:
  • Right (math_Vector &) –
  • Product (math_Matrix &) –
Return type:

None

Value()
  • accesses (in read or write mode) the value of index <Row>, <Col> and <Mat> of a Tensor. An exception is raised if <Row>, <Col> or <Mat> are not in the correct range.
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
  • Mat (Standard_Integer) –
Return type:

float

thisown

The membership flag

class OCC.GeomFill.GeomFill_TgtField(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

D1()
  • Computes the derivative of the field of tangency at parameter W.
Parameters:W (float) –
Return type:gp_Vec
  • Computes the value and the derivative of the field of tangency at parameter W.
Parameters:
  • W (float) –
  • V (gp_Vec) –
  • DV (gp_Vec) –
Return type:

void

GetHandle()

GeomFill_TgtField_GetHandle(GeomFill_TgtField self) -> Handle_GeomFill_TgtField

IsScalable()
Return type:bool
Scale()
Parameters:Func (Handle_Law_BSpline &) –
Return type:void
Value()
  • Computes the value of the field of tangency at parameter W.
Parameters:W (float) –
Return type:gp_Vec
thisown

The membership flag

class OCC.GeomFill.GeomFill_TgtOnCoons(*args)

Bases: OCC.GeomFill.GeomFill_TgtField

D1()
  • Computes the derivative of the field of tangency at parameter W.
Parameters:W (float) –
Return type:gp_Vec
  • Computes the value and the derivative of the field of tangency at parameter W.
Parameters:
  • W (float) –
  • T (gp_Vec) –
  • DT (gp_Vec) –
Return type:

None

GetHandle()

GeomFill_TgtOnCoons_GetHandle(GeomFill_TgtOnCoons self) -> Handle_GeomFill_TgtOnCoons

thisown

The membership flag

class OCC.GeomFill.GeomFill_TrihedronLaw(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

Copy()
Return type:Handle_GeomFill_TrihedronLaw
D0()
  • compute Triedrhon on curve at parameter <Param>
Parameters:
  • Param (float) –
  • Tangent (gp_Vec) –
  • Normal (gp_Vec) –
  • BiNormal (gp_Vec) –
Return type:

bool

D1()
  • compute Triedrhon and derivative Trihedron on curve at parameter <Param> Warning : It used only for C1 or C2 aproximation
Parameters:
  • Param (float) –
  • Tangent (gp_Vec) –
  • DTangent (gp_Vec) –
  • Normal (gp_Vec) –
  • DNormal (gp_Vec) –
  • BiNormal (gp_Vec) –
  • DBiNormal (gp_Vec) –
Return type:

bool

D2()
  • compute Trihedron on curve first and seconde derivatives. Warning : It used only for C2 aproximation
Parameters:
  • Param (float) –
  • Tangent (gp_Vec) –
  • DTangent (gp_Vec) –
  • D2Tangent (gp_Vec) –
  • Normal (gp_Vec) –
  • DNormal (gp_Vec) –
  • D2Normal (gp_Vec) –
  • BiNormal (gp_Vec) –
  • DBiNormal (gp_Vec) –
  • D2BiNormal (gp_Vec) –
Return type:

bool

ErrorStatus()
  • //!Give a status to the Law Returns PipeOk (default implementation)
Return type:GeomFill_PipeError
GetAverageLaw()
  • Get average value of M(t) and V(t) it is usfull to make fast approximation of rational surfaces.
Parameters:
  • ATangent (gp_Vec) –
  • ANormal (gp_Vec) –
  • ABiNormal (gp_Vec) –
Return type:

void

GetHandle()

GeomFill_TrihedronLaw_GetHandle(GeomFill_TrihedronLaw self) -> Handle_GeomFill_TrihedronLaw

GetInterval()
  • Gets the bounds of the parametric interval on the function
Parameters:
  • First (float &) –
  • Last (float &) –
Return type:

None

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

IsConstant()
  • Say if the law is Constant
Return type:bool
IsOnlyBy3dCurve()
  • Say if the law is defined, only by the 3d Geometry of the setted Curve Return False by Default.
Return type:bool
NbIntervals()
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters:S (GeomAbs_Shape) –
Return type:int
SetCurve()
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:void
SetInterval()
  • Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters:
  • First (float) –
  • Last (float) –
Return type:

void

thisown

The membership flag

class OCC.GeomFill.GeomFill_TrihedronWithGuide(*args, **kwargs)

Bases: OCC.GeomFill.GeomFill_TrihedronLaw

CurrentPointOnGuide()
  • Returns the current point on guide found by D0, D1 or D2.
Return type:gp_Pnt
GetHandle()

GeomFill_TrihedronWithGuide_GetHandle(GeomFill_TrihedronWithGuide self) -> Handle_GeomFill_TrihedronWithGuide

Guide()
Return type:Handle_Adaptor3d_HCurve
Origine()
Parameters:
  • Param1 (float) –
  • Param2 (float) –
Return type:

void

thisown

The membership flag

class OCC.GeomFill.GeomFill_UniformSection(*args)

Bases: OCC.GeomFill.GeomFill_SectionLaw

GetHandle()

GeomFill_UniformSection_GetHandle(GeomFill_UniformSection self) -> Handle_GeomFill_UniformSection

thisown

The membership flag

class OCC.GeomFill.Handle_GeomFill_BoundWithSurf(*args)

Bases: OCC.GeomFill.Handle_GeomFill_Boundary

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_Boundary(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_CircularBlendFunc(*args)

Bases: OCC.Approx.Handle_Approx_SweepFunction

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_ConstantBiNormal(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TrihedronLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_CoonsAlgPatch(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_CorrectedFrenet(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TrihedronLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_CurveAndTrihedron(*args)

Bases: OCC.GeomFill.Handle_GeomFill_LocationLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_Darboux(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TrihedronLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_DegeneratedBound(*args)

Bases: OCC.GeomFill.Handle_GeomFill_Boundary

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_DiscreteTrihedron(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TrihedronLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_DraftTrihedron(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TrihedronLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_EvolvedSection(*args)

Bases: OCC.GeomFill.Handle_GeomFill_SectionLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_Fixed(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TrihedronLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_Frenet(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TrihedronLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_GuideTrihedronAC(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TrihedronWithGuide

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_GuideTrihedronPlan(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TrihedronWithGuide

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_HArray1OfLocationLaw(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_HArray1OfSectionLaw(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_HSequenceOfAx2(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_Line(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_LocationDraft(*args)

Bases: OCC.GeomFill.Handle_GeomFill_LocationLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_LocationGuide(*args)

Bases: OCC.GeomFill.Handle_GeomFill_LocationLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_LocationLaw(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_SectionLaw(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_SequenceNodeOfSequenceOfAx2(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_SequenceNodeOfSequenceOfTrsf(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_SimpleBound(*args)

Bases: OCC.GeomFill.Handle_GeomFill_Boundary

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_SweepFunction(*args)

Bases: OCC.Approx.Handle_Approx_SweepFunction

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_TgtField(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_TgtOnCoons(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TgtField

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_TrihedronLaw(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_TrihedronWithGuide(*args)

Bases: OCC.GeomFill.Handle_GeomFill_TrihedronLaw

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

The membership flag

class OCC.GeomFill.Handle_GeomFill_UniformSection(*args)

Bases: OCC.GeomFill.Handle_GeomFill_SectionLaw

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

The membership flag

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

Bases: object

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

The membership flag

value()
class OCC.GeomFill.geomfill(*args, **kwargs)

Bases: object

static GetCircle(*args)
Parameters:
  • TConv (Convert_ParameterisationType) –
  • ns1 (gp_Vec) –
  • ns2 (gp_Vec) –
  • nplan (gp_Vec) –
  • pt1 (gp_Pnt) –
  • pt2 (gp_Pnt) –
  • Rayon (float) –
  • Center (gp_Pnt) –
  • Poles (TColgp_Array1OfPnt) –
  • Weigths (TColStd_Array1OfReal &) –
  • TConv
  • ns1
  • ns2
  • dn1w (gp_Vec) –
  • dn2w (gp_Vec) –
  • nplan
  • dnplan (gp_Vec) –
  • pts1 (gp_Pnt) –
  • pts2 (gp_Pnt) –
  • tang1 (gp_Vec) –
  • tang2 (gp_Vec) –
  • Rayon
  • DRayon (float) –
  • Center
  • DCenter (gp_Vec) –
  • Poles
  • DPoles (TColgp_Array1OfVec) –
  • Weigths
  • DWeigths (TColStd_Array1OfReal &) –
  • TConv
  • ns1
  • ns2
  • dn1w
  • dn2w
  • d2n1w (gp_Vec) –
  • d2n2w (gp_Vec) –
  • nplan
  • dnplan
  • d2nplan (gp_Vec) –
  • pts1
  • pts2
  • tang1
  • tang2
  • Dtang1 (gp_Vec) –
  • Dtang2 (gp_Vec) –
  • Rayon
  • DRayon
  • D2Rayon (float) –
  • Center
  • DCenter
  • D2Center (gp_Vec) –
  • Poles
  • DPoles
  • D2Poles (TColgp_Array1OfVec) –
  • Weigths
  • DWeigths
  • D2Weigths (TColStd_Array1OfReal &) –
Return type:

void

Return type:

bool

Return type:

bool

static GetMinimalWeights(*args)
Parameters:
  • TConv (Convert_ParameterisationType) –
  • AngleMin (float) –
  • AngleMax (float) –
  • Weigths (TColStd_Array1OfReal &) –
Return type:

void

static GetShape(*args)
Parameters:
  • MaxAng (float) –
  • NbPoles (Standard_Integer &) –
  • NbKnots (Standard_Integer &) –
  • Degree (Standard_Integer &) –
  • TypeConv (Convert_ParameterisationType &) –
Return type:

void

static GetTolerance(*args)
  • Used by the generical classes to determine Tolerance for approximation
Parameters:
  • TConv (Convert_ParameterisationType) –
  • AngleMin (float) –
  • Radius (float) –
  • AngularTol (float) –
  • SpatialTol (float) –
Return type:

float

static Knots(*args)
Parameters:
  • TypeConv (Convert_ParameterisationType) –
  • TKnots (TColStd_Array1OfReal &) –
Return type:

void

static Mults(*args)
Parameters:
  • TypeConv (Convert_ParameterisationType) –
  • TMults (TColStd_Array1OfInteger &) –
Return type:

void

static Surface(*args)
  • Builds a ruled surface between the two curves, Curve1 and Curve2.
Parameters:
  • Curve1 (Handle_Geom_Curve &) –
  • Curve2 (Handle_Geom_Curve &) –
Return type:

Handle_Geom_Surface

thisown

The membership flag

OCC.GeomFill.geomfill_GetCircle(*args)
Parameters:
  • TConv (Convert_ParameterisationType) –
  • ns1 (gp_Vec) –
  • ns2 (gp_Vec) –
  • nplan (gp_Vec) –
  • pt1 (gp_Pnt) –
  • pt2 (gp_Pnt) –
  • Rayon (float) –
  • Center (gp_Pnt) –
  • Poles (TColgp_Array1OfPnt) –
  • Weigths (TColStd_Array1OfReal &) –
  • TConv
  • ns1
  • ns2
  • dn1w (gp_Vec) –
  • dn2w (gp_Vec) –
  • nplan
  • dnplan (gp_Vec) –
  • pts1 (gp_Pnt) –
  • pts2 (gp_Pnt) –
  • tang1 (gp_Vec) –
  • tang2 (gp_Vec) –
  • Rayon
  • DRayon (float) –
  • Center
  • DCenter (gp_Vec) –
  • Poles
  • DPoles (TColgp_Array1OfVec) –
  • Weigths
  • DWeigths (TColStd_Array1OfReal &) –
  • TConv
  • ns1
  • ns2
  • dn1w
  • dn2w
  • d2n1w (gp_Vec) –
  • d2n2w (gp_Vec) –
  • nplan
  • dnplan
  • d2nplan (gp_Vec) –
  • pts1
  • pts2
  • tang1
  • tang2
  • Dtang1 (gp_Vec) –
  • Dtang2 (gp_Vec) –
  • Rayon
  • DRayon
  • D2Rayon (float) –
  • Center
  • DCenter
  • D2Center (gp_Vec) –
  • Poles
  • DPoles
  • D2Poles (TColgp_Array1OfVec) –
  • Weigths
  • DWeigths
  • D2Weigths (TColStd_Array1OfReal &) –
Return type:

void

Return type:

bool

Return type:

bool

OCC.GeomFill.geomfill_GetMinimalWeights(*args)
Parameters:
  • TConv (Convert_ParameterisationType) –
  • AngleMin (float) –
  • AngleMax (float) –
  • Weigths (TColStd_Array1OfReal &) –
Return type:

void

OCC.GeomFill.geomfill_GetShape(*args)
Parameters:
  • MaxAng (float) –
  • NbPoles (Standard_Integer &) –
  • NbKnots (Standard_Integer &) –
  • Degree (Standard_Integer &) –
  • TypeConv (Convert_ParameterisationType &) –
Return type:

void

OCC.GeomFill.geomfill_GetTolerance(*args)
  • Used by the generical classes to determine Tolerance for approximation
Parameters:
  • TConv (Convert_ParameterisationType) –
  • AngleMin (float) –
  • Radius (float) –
  • AngularTol (float) –
  • SpatialTol (float) –
Return type:

float

OCC.GeomFill.geomfill_Knots(*args)
Parameters:
  • TypeConv (Convert_ParameterisationType) –
  • TKnots (TColStd_Array1OfReal &) –
Return type:

void

OCC.GeomFill.geomfill_Mults(*args)
Parameters:
  • TypeConv (Convert_ParameterisationType) –
  • TMults (TColStd_Array1OfInteger &) –
Return type:

void

OCC.GeomFill.geomfill_Surface(*args)
  • Builds a ruled surface between the two curves, Curve1 and Curve2.
Parameters:
  • Curve1 (Handle_Geom_Curve &) –
  • Curve2 (Handle_Geom_Curve &) –
Return type:

Handle_Geom_Surface